[IMP] add tag 'sheet' into form view of hs.code

product_harmonized_system 14.0.2.3.0
This commit is contained in:
Yu Weng
2022-06-17 16:16:58 +02:00
committed by Víctor Martínez
parent 91c07f169b
commit 4b8a6204c7
2 changed files with 44 additions and 42 deletions

View File

@@ -9,7 +9,7 @@
{
"name": "Product Harmonized System Codes",
"version": "14.0.2.2.0",
"version": "14.0.2.3.0",
"category": "Reporting",
"license": "AGPL-3",
"summary": "Base module for Product Import/Export reports",

View File

@@ -55,47 +55,49 @@
<field name="model">hs.code</field>
<field name="arch" type="xml">
<form string="H.S. Code">
<field name="active" invisible="1" />
<widget
name="web_ribbon"
text="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<div class="oe_button_box" name="button_box">
<button
class="oe_stat_button"
name="%(product_categ_hs_code_action)d"
icon="fa-th-list"
type="action"
>
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field name="product_categ_count" />
</span>
<span class="o_stat_text">Product Categs</span>
</div>
</button>
<button
class="oe_stat_button"
name="%(product_template_hs_code_action)d"
icon="fa-th-list"
type="action"
>
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field name="product_tmpl_count" />
</span>
<span class="o_stat_text">Products</span>
</div>
</button>
</div>
<group name="main">
<field name="local_code" />
<field name="hs_code" />
<field name="description" />
<field name="company_id" groups="base.group_multi_company" />
</group>
<sheet>
<field name="active" invisible="1" />
<widget
name="web_ribbon"
text="Archived"
bg_color="bg-danger"
attrs="{'invisible': [('active', '=', True)]}"
/>
<div class="oe_button_box" name="button_box">
<button
class="oe_stat_button"
name="%(product_categ_hs_code_action)d"
icon="fa-th-list"
type="action"
>
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field name="product_categ_count" />
</span>
<span class="o_stat_text">Product Categs</span>
</div>
</button>
<button
class="oe_stat_button"
name="%(product_template_hs_code_action)d"
icon="fa-th-list"
type="action"
>
<div class="o_field_widget o_stat_info">
<span class="o_stat_value">
<field name="product_tmpl_count" />
</span>
<span class="o_stat_text">Products</span>
</div>
</button>
</div>
<group name="main">
<field name="local_code" />
<field name="hs_code" />
<field name="description" />
<field name="company_id" groups="base.group_multi_company" />
</group>
</sheet>
</form>
</field>
</record>