validity_date for Offer; no_quick_edit for intrastat_id; report_production - fix

develop
Andreas Osim 2018-11-09 12:57:54 +01:00
parent c20ca14122
commit ed0fe21fa9
1 changed files with 2 additions and 2 deletions

View File

@ -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):