From 3ecb2ec25117294cc6d439086b4f3be9b13d06bb Mon Sep 17 00:00:00 2001 From: Andreas Osim Date: Thu, 15 Nov 2018 08:16:01 +0100 Subject: [PATCH] product: fix onchange for volume --- ext/custom-addons/dp_custom/models/product.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/custom-addons/dp_custom/models/product.py b/ext/custom-addons/dp_custom/models/product.py index bcc8e2e0..2faecc3e 100644 --- a/ext/custom-addons/dp_custom/models/product.py +++ b/ext/custom-addons/dp_custom/models/product.py @@ -60,7 +60,7 @@ class ProductTemplate(models.Model): manufacturing_number = fields.Char(string='Herstellnummer') product_color = fields.Char(string='Farbe') - @api.onchange('length', 'width', 'thickness') + @api.onchange('length', 'width', 'thickness', 'height') def _onchange_measures(self): if self.length>0 and self.width>0 and self.thickness>0: self.volume = self.length*self.width*self.thickness / (1000*1000*1000)