COO report

This commit is contained in:
2026-04-22 21:39:03 +02:00
parent c2838dcfd3
commit 036a2801e5
2 changed files with 17 additions and 2 deletions

View File

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

View File

@@ -253,8 +253,8 @@
<text:p text:style-name="Standard"><text:placeholder text:placeholder-type="text">&lt;records[0].report_coo_goods_description or &apos;&apos;&gt;</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">&lt;records[0].report_coo_net_weight or &apos;&apos;&gt;</text:placeholder></text:p>
<text:p text:style-name="Standard"><text:placeholder text:placeholder-type="text">&lt;records[0].report_coo_gross_weight or &apos;&apos;&gt;</text:placeholder></text:p>
<text:p text:style-name="Standard"><text:placeholder text:placeholder-type="text">&lt;records[0].report_coo_net_weight_display or &apos;&apos;&gt;</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">&lt;records[0].report_coo_gross_weight_display or &apos;&apos;&gt;</text:placeholder></text:p>
</table:table-cell>
</table:table-row>