COO report
This commit is contained in:
@@ -865,6 +865,20 @@ class ShipmentIn(metaclass=PoolMeta):
|
||||
def report_coo_gross_weight(self):
|
||||
return self.report_packing_gross_weight
|
||||
|
||||
@property
|
||||
def report_coo_weight_unit(self):
|
||||
return self.report_packing_weight_unit or ''
|
||||
|
||||
@property
|
||||
def report_coo_net_weight_display(self):
|
||||
parts = [self.report_coo_net_weight, self.report_coo_weight_unit]
|
||||
return ' '.join(part for part in parts if part)
|
||||
|
||||
@property
|
||||
def report_coo_gross_weight_display(self):
|
||||
parts = [self.report_coo_gross_weight, self.report_coo_weight_unit]
|
||||
return ' '.join(part for part in parts if part)
|
||||
|
||||
@property
|
||||
def report_coo_issue_date(self):
|
||||
Date = Pool().get('ir.date')
|
||||
|
||||
@@ -253,8 +253,8 @@
|
||||
<text:p text:style-name="Standard"><text:placeholder text:placeholder-type="text"><records[0].report_coo_goods_description or ''></text:placeholder></text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="CellTall" office:value-type="string">
|
||||
<text:p text:style-name="Standard"><text:placeholder text:placeholder-type="text"><records[0].report_coo_net_weight or ''></text:placeholder></text:p>
|
||||
<text:p text:style-name="Standard"><text:placeholder text:placeholder-type="text"><records[0].report_coo_gross_weight or ''></text:placeholder></text:p>
|
||||
<text:p text:style-name="Standard"><text:placeholder text:placeholder-type="text"><records[0].report_coo_net_weight_display or ''></text:placeholder></text:p>
|
||||
<text:p text:style-name="Standard"> </text:p>
|
||||
<text:p text:style-name="Standard"> </text:p>
|
||||
<text:p text:style-name="Standard"> </text:p>
|
||||
<text:p text:style-name="Standard"> </text:p>
|
||||
@@ -263,6 +263,7 @@
|
||||
<text:p text:style-name="CellSubLabel">Bruttogewicht</text:p>
|
||||
<text:p text:style-name="CellSubLabel">Peso lordo</text:p>
|
||||
<text:p text:style-name="CellSubLabel">Gross weight</text:p>
|
||||
<text:p text:style-name="Standard"><text:placeholder text:placeholder-type="text"><records[0].report_coo_gross_weight_display or ''></text:placeholder></text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user