diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-24 15:11:23 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-04-24 15:11:23 +0700 |
| commit | a00567614901730258b6c40693cf811ae7b6e380 (patch) | |
| tree | 722a39ec9ef9a637fd85b8204049d7406225e67d | |
| parent | 398bcb1df3b86ba7a0ca83499ae706f1581d02b9 (diff) | |
fix bug taxes apo
| -rw-r--r-- | indoteknik_custom/models/automatic_purchase.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py index 70b6969e..ca64d8b0 100644 --- a/indoteknik_custom/models/automatic_purchase.py +++ b/indoteknik_custom/models/automatic_purchase.py @@ -252,7 +252,7 @@ class AutomaticPurchase(models.Model): 'suggest': product._get_po_suggest(line.qty_purchase), 'product_uom_qty': line.qty_purchase, 'price_unit': line.last_price, - 'taxes_id': [line.taxes_id.id], + 'taxes_id': [line.taxes_id.id] if line.taxes_id else None, # 'so_line_id': [sales.sale_line_id.id for sales in sales_match], } new_po_line = self.env['purchase.order.line'].create([param_line]) |
