Files
intrastat-extrastat/product_harmonized_system/views/product_template.xml
Alexis de Lattre 40ef551079 product_harmonized_system_delivery: hs_code is now store=True
This commit is the "followup" of the change to company_dependent=False
on the fields hs_code_id on product.template and product.category.
Add groupby on hs_code_id on product.template search view
hs.code is now company_id=False by default
2021-12-16 17:23:37 +01:00

40 lines
1.5 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2010-2020 Akretion France (http://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<!-- product.template form view -->
<record id="product_template_form_view" model="ir.ui.view">
<field name="name">hs_code.product.template.form</field>
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_form_view" />
<field name="arch" type="xml">
<field name="company_id" position="before">
<field
name="hs_code_id"
attrs="{'invisible': [('type', '=', 'service')]}"
/>
<field
name="origin_country_id"
attrs="{'invisible': [('type', '=', 'service')]}"
/>
</field>
</field>
</record>
<record id="product_template_search_view" model="ir.ui.view">
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_search_view" />
<field name="arch" type="xml">
<filter name="categ_id" position="after">
<filter
string="H.S. Code"
name="hs_code_groupby"
context="{'group_by': 'hs_code_id'}"
/>
</filter>
</field>
</record>
</odoo>