add type & reporting level to lines context

This commit is contained in:
luc.demeyer@noviat.com
2019-02-08 12:29:34 +01:00
parent ec5ebb20ec
commit 30fe798580
2 changed files with 7 additions and 3 deletions

View File

@@ -40,7 +40,7 @@ class IntrastatProductDeclarationXlsx(AbstractReportXlsx):
'product_origin_country': {
'header': {
'type': 'string',
'value': self._('Country of Origin of the Product'),
'value': self._('Product C/O'),
},
'line': {
'type': 'string',

View File

@@ -54,7 +54,9 @@
context="{'computation_lines': 1}"/>
</header>
<group name="computation_lines">
<field name="computation_line_ids" nolabel="1"/>
<field name="computation_line_ids"
context="{'type': type, 'reporting_level': reporting_level}"
nolabel="1"/>
</group>
</page>
<page string="Declaration Lines">
@@ -63,7 +65,9 @@
context="{'declaration_lines': 1}"/>
</header>
<group name="declaration_lines">
<field name="declaration_line_ids" nolabel="1"/>
<field name="declaration_line_ids"
context="{'type': type, 'reporting_level': reporting_level}"
nolabel="1"/>
</group>
</page>
<page string="Notes">