Add insurance template
This commit is contained in:
@@ -492,6 +492,20 @@ class Sale(metaclass=PoolMeta):
|
||||
return 'NB BALES: ' + str(int(nb_bale))
|
||||
return ''
|
||||
|
||||
@property
|
||||
def report_product_name(self):
|
||||
line = self._get_report_first_line()
|
||||
if line and line.product:
|
||||
return line.product.name or ''
|
||||
return ''
|
||||
|
||||
@property
|
||||
def report_product_description(self):
|
||||
line = self._get_report_first_line()
|
||||
if line and line.product:
|
||||
return line.product.description or ''
|
||||
return ''
|
||||
|
||||
@property
|
||||
def report_crop_name(self):
|
||||
if self.crop:
|
||||
|
||||
Reference in New Issue
Block a user