summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/purchase_pricelist.py
diff options
context:
space:
mode:
authorAzka Nathan <darizkyfaz@gmail.com>2024-01-23 15:32:58 +0700
committerAzka Nathan <darizkyfaz@gmail.com>2024-01-23 15:32:58 +0700
commit331671549aacb0d8f6b4448a4e788fd530f78654 (patch)
treec26a61431b046ecdd4126f4013ef3f1713a7e984 /indoteknik_custom/models/purchase_pricelist.py
parent3ba2dce46cb057125ff6ca2f54d8fbeae0af375c (diff)
fix automatic purchase
Diffstat (limited to 'indoteknik_custom/models/purchase_pricelist.py')
-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 43efb7b5..c756c301 100755
--- a/indoteknik_custom/models/purchase_pricelist.py
+++ b/indoteknik_custom/models/purchase_pricelist.py
@@ -23,7 +23,7 @@ class PurchasePricelist(models.Model):
def _compute_name(self):
self.name = self.vendor_id.name + ', ' + self.product_id.name
- @api.constrains('product_price','system_price','vendor_id','product_id')
+ @api.constrains('product_price','system_price','vendor_id','product_id','taxes_system_id','taxes_product_id')
def _contrains_product_price(self):
current_time = fields.Datetime.now(timezone('Asia/Jakarta')).strftime('%Y-%m-%d %H:%M:%S')
update_by = self._context.get('update_by')