From 069d3c7a80e54b2d68f9539244c279351a09f230 Mon Sep 17 00:00:00 2001 From: Andreas Osim Date: Fri, 29 Jun 2018 13:23:26 +0200 Subject: [PATCH] allow pricechange for TZ_PLATTE (temporary workaround for wrong prices coming from DesignBox) --- ext/custom-addons/dp_custom/models/sale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/custom-addons/dp_custom/models/sale.py b/ext/custom-addons/dp_custom/models/sale.py index 4e04c433..4b9660e8 100644 --- a/ext/custom-addons/dp_custom/models/sale.py +++ b/ext/custom-addons/dp_custom/models/sale.py @@ -514,7 +514,7 @@ class SaleOrderLine(models.Model): self.ensure_one() allowed_write = True precision_digits = self.env['decimal.precision'].precision_get('Product Price') - if self.from_designbox and set(vals.keys()).intersection(not_allowed_designbox_keys): + if (self.from_designbox and self.product_id.default_code!='TZ_PLATTE') and set(vals.keys()).intersection(not_allowed_designbox_keys): for val_key in not_allowed_designbox_keys: if val_key in list(vals.keys()) and type(self.__getattribute__(val_key)) is float: if float_compare(self.__getattribute__(val_key), vals[val_key],