summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-01-23 10:53:29 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-01-23 10:53:29 +0700
commit90147ac8a57a110ce19c447095cc956e7861dcf5 (patch)
tree5c6cb1a9624ff1a929b23352b9453c9f517a54ec
parent266f1cee69959dc47dc3e66e0448a7c5c09f9e1a (diff)
fix constrains purchase price list
-rwxr-xr-xindoteknik_custom/models/purchase_pricelist.py2
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