diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-23 10:53:29 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2024-01-23 10:53:29 +0700 |
| commit | 90147ac8a57a110ce19c447095cc956e7861dcf5 (patch) | |
| tree | 5c6cb1a9624ff1a929b23352b9453c9f517a54ec | |
| parent | 266f1cee69959dc47dc3e66e0448a7c5c09f9e1a (diff) | |
fix constrains purchase price list
| -rwxr-xr-x | indoteknik_custom/models/purchase_pricelist.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/purchase_pricelist.py b/indoteknik_custom/models/purchase_pricelist.py index af33abbf..10326c83 100755 --- a/indoteknik_custom/models/purchase_pricelist.py +++ b/indoteknik_custom/models/purchase_pricelist.py @@ -32,7 +32,7 @@ class PurchasePricelist(models.Model): else: self.human_last_update = current_time - @api.constrains('system_last_update','system_price','product_price','human_last_update') + @api.constrains('system_last_update','system_price','product_price','human_last_update','taxes_system_id','taxes_product_id') def _contrains_include_price(self): price_unit, taxes = self._get_valid_price() # taxes = self.taxes_system_id or self.taxes_product_id |
