mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
intrastat_product: improve tree view of declaration
This commit is contained in:
@@ -137,17 +137,24 @@
|
||||
<field name="name">intrastat.product.declaration.tree</field>
|
||||
<field name="model">intrastat.product.declaration</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree
|
||||
string="Intrastat Product Declarations"
|
||||
decoration-info="state=='draft'"
|
||||
>
|
||||
<field name="year_month" />
|
||||
<tree string="Intrastat Product Declarations">
|
||||
<field name="year_month" decoration-bf="1" />
|
||||
<field name="revision" />
|
||||
<field name="declaration_type" />
|
||||
<field
|
||||
name="declaration_type"
|
||||
widget="badge"
|
||||
decoration-danger="declaration_type == 'arrivals'"
|
||||
decoration-warning="declaration_type == 'dispatches'"
|
||||
/>
|
||||
<field name="num_decl_lines" />
|
||||
<field name="total_amount" sum="Total amount" />
|
||||
<field name="currency_id" />
|
||||
<field name="state" />
|
||||
<field
|
||||
name="state"
|
||||
decoration-success="state == 'done'"
|
||||
decoration-info="state == 'draft'"
|
||||
widget="badge"
|
||||
/>
|
||||
</tree>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user