diff options
| author | IT Fixcomart <it@fixcomart.co.id> | 2024-04-29 06:30:50 +0000 |
|---|---|---|
| committer | IT Fixcomart <it@fixcomart.co.id> | 2024-04-29 06:30:50 +0000 |
| commit | 1c0c7be74b11371299bead2626840b3ebc2632f7 (patch) | |
| tree | 14e43d531e420cedb3f69956c2e5b75e81a2345e /indoteknik_custom/models/automatic_purchase.py | |
| parent | 09c3b3a6a706d176f61bf89fc7acb690650b528c (diff) | |
| parent | a5727ae0dd3f82bf22b888125d924520833838b4 (diff) | |
Merged in feature/request-by-abl (pull request #140)
Feature/request by abl
Diffstat (limited to 'indoteknik_custom/models/automatic_purchase.py')
| -rw-r--r-- | indoteknik_custom/models/automatic_purchase.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indoteknik_custom/models/automatic_purchase.py b/indoteknik_custom/models/automatic_purchase.py index ca64d8b0..dae1c6a4 100644 --- a/indoteknik_custom/models/automatic_purchase.py +++ b/indoteknik_custom/models/automatic_purchase.py @@ -406,6 +406,7 @@ class AutomaticPurchase(models.Model): 'qty_so': sale.outgoing, 'qty_po': line.qty_purchase, 'purchase_price': price_so.purchase_price, + 'purchase_tax_id': price_so.purchase_tax_id.id if price_so.purchase_tax_id.id else None, }]) def _create_sync_purchasing_job(self, jobs): @@ -558,7 +559,7 @@ class AutomaticPurchaseSalesMatch(models.Model): qty_so = fields.Float(string='Qty SO') qty_po = fields.Float(string='Qty PO') purchase_price = fields.Float(string='Purchase Price SO') - + purchase_tax_id = fields.Many2one('account.tax', string='Tax', domain=['|', ('active', '=', False), ('active', '=', True)]) class SyncPurchasingJob(models.Model): _name = 'sync.purchasing.job' |
