Merge PR #182 into 14.0

Signed-off-by alexis-via
This commit is contained in:
OCA-git-bot
2022-06-23 07:31:34 +00:00

View File

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