mirror of
https://github.com/OCA/intrastat-extrastat.git
synced 2025-02-16 17:13:41 +02:00
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
40 lines
1.5 KiB
XML
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>
|