diff --git a/ext/custom-addons/dp_custom/models/product.py b/ext/custom-addons/dp_custom/models/product.py index 05ea6a23..97ed9ada 100644 --- a/ext/custom-addons/dp_custom/models/product.py +++ b/ext/custom-addons/dp_custom/models/product.py @@ -62,9 +62,9 @@ class ProductTemplate(models.Model): @api.onchange('length', 'width', 'thickness') 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) + self.volume = self.length*self.width*self.thickness / (1000*1000*1000) elif self.length>0 and self.width>0 and self.height>0: - self.volume = self.length*self.width*self.height/(1000*1000*1000) + self.volume = self.length*self.width*self.height / (1000*1000*1000) @api.model def create_product(self, vals):