[MIG] product_usability_akretion to v18

This commit is contained in:
Alexis de Lattre
2024-12-28 23:52:48 +01:00
parent f9f06d83e2
commit ab7ec7829d
12 changed files with 40 additions and 66 deletions

View File

@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="product_category_form_view" model="ir.ui.view">
<field name="model">product.category</field>
<field name="inherit_id" ref="product.product_category_form_view" />
<field name="arch" type="xml">
<sheet position="after">
<div class="oe_chatter">
<field name="message_follower_ids"/>
<field name="activity_ids"/>
<field name="message_ids"/>
</div>
</sheet>
</field>
</record>
</odoo>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2022 Akretion France (http://www.akretion.com/)
Copyright 2022-2024 Akretion France (https://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
@@ -10,7 +10,7 @@
<!--
When the module stock and sale are not installed,
there is no menu entry for UoM nor Product Categories !
This set of menu entries entre Configuration > Technical fixes this
This set of menu entries under Configuration > Technical fixes this
-->
<menuitem id="product_config_menu" parent="base.menu_custom"

View File

@@ -11,7 +11,7 @@
<record id="pricelist_item_fullscreen_action" model="ir.actions.act_window">
<field name="name">Price Rules</field>
<field name="res_model">product.pricelist.item</field>
<field name="view_mode">tree,form</field>
<field name="view_mode">list,form</field>
<field name="domain">[('pricelist_id', '=', active_id)]</field>
<field name="context">{'product_pricelist_item_main_view': True}</field>
</record>

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2015-2022 Akretion (http://www.akretion.com/)
Copyright 2015-2024 Akretion (https://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
@@ -13,10 +13,16 @@
<field name="inherit_id" ref="product.product_product_tree_view"/>
<field name="arch" type="xml">
<field name="lst_price" position="after">
<field name="currency_id" invisible="1"/>
<field name="currency_id" column_invisible="1"/>
<field name="cost_currency_id" column_invisible="1"/>
</field>
<field name="lst_price" position="attributes">
<attribute name="widget">monetary</attribute>
<attribute name="options">{'currency_field': 'currency_id'}</attribute>
</field>
<field name="standard_price" position="attributes">
<attribute name="widget">monetary</attribute>
<attribute name="options">{'currency_field': 'cost_currency_id'}</attribute>
</field>
</field>
</record>
@@ -27,7 +33,7 @@
<field name="inherit_id" ref="product.product_normal_form_view"/>
<field name="arch" type="xml">
<field name="barcode" position="after">
<field name="barcode_type" attrs="{'invisible': [('barcode', '=', False)]}"/>
<field name="barcode_type" invisible="not barcode"/>
</field>
</field>
</record>

View File

@@ -1,22 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2015-2020 Akretion (http://www.akretion.com/)
Copyright 2015-2024 Akretion (https://www.akretion.com/)
@author Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="product_supplierinfo_search_view" model="ir.ui.view">
<field name="model">product.supplierinfo</field>
<field name="inherit_id" ref="product.product_supplierinfo_search_view"/>
<field name="arch" type="xml">
<field name="product_tmpl_id" position="after">
<field name="product_name" filter_domain="['|', ('product_code', 'ilike', self), ('product_name', 'ilike', self)]" />
</field>
</field>
</record>
<record id="product_supplierinfo_tree_view" model="ir.ui.view">
<field name="model">product.supplierinfo</field>
<field name="inherit_id" ref="product.product_supplierinfo_tree_view"/>

View File

@@ -14,11 +14,8 @@
<field name="inherit_id" ref="product.product_template_search_view" />
<field name="arch" type="xml">
<field name="categ_id" position="after">
<field name="seller_ids" string="Supplier" filter_domain="[('seller_ids.partner_id', 'ilike', self)]"/>
<field name="seller_id" string="Main Supplier"/>
</field>
<filter name="type" position="attributes">
<attribute name="context">{'group_by': 'detailed_type'}</attribute>
</filter>
</field>
</record>
@@ -30,7 +27,7 @@
<field name="arch" type="xml">
<field name="barcode" position="after">
<!-- barcode is False when the template has several variants anyway -->
<field name="barcode_type" attrs="{'invisible': [('barcode', '=', False)]}"/>
<field name="barcode_type" invisible="not barcode"/>
</field>
</field>
</record>