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)