Commit 132e09b4 by Yvon

create new views in lacagette products module to allow filtering by…

create new views in lacagette products module to allow filtering by seller_ids.product_code in stock_picking, product_product and product_template views
parent b16de136
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
'summary': """ 'summary': """
Retrieve data such as barcode for all available products (too long request with standard API), Retrieve data such as barcode for all available products (too long request with standard API),
average sales (for products in purchase order for ex.) average sales (for products in purchase order for ex.)
Miscellaneous : enable filtering on Vendor Product Code.
""", """,
'description': """ 'description': """
...@@ -24,7 +25,8 @@ ...@@ -24,7 +25,8 @@
'depends': ['base', 'product'], 'depends': ['base', 'product'],
# always loaded # always loaded
'data': [ 'data': [
'data/ir_config_parameter_data.xml' 'data/ir_config_parameter_data.xml',
'views/product_view.xml'
], ],
'installable': True, 'installable': True,
} }
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * lacagette_products
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 9.0c\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2023-12-23 11:29+0000\n"
"PO-Revision-Date: 2023-12-23 11:29+0000\n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"
#. module: lacagette_products
#: model:ir.ui.view,arch_db:lacagette_products.product_custom_search_view
msgid "Vendor Product Code"
msgstr "Référence Fournisseur"
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="stock_picking_supplier_code_search" model="ir.ui.view">
<field name="model">stock.picking</field>
<field name="inherit_id" ref="stock.view_picking_internal_search"/>
<field name="arch" type="xml">
<field name="product_id" position="after">
<field name="move_lines" string="Vendor Product Code"
filter_domain="[('move_lines.product_id.seller_ids.product_code','ilike',self)]"/>
</field>
</field>
</record>
</odoo>
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="product_custom_search_view" model="ir.ui.view">
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_search_form_view"/>
<field name="arch" type="xml">
<field name="name" position="after">
<field name="seller_ids" string="Vendor Product Code"
filter_domain="[('seller_ids.product_code','ilike',self)]" />
</field>
</field>
</record>
<record id="product_custom_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">
<field name="name" position="after">
<field name="seller_ids" string="Vendor Product Code"
filter_domain="[('seller_ids.product_code','ilike',self)]" />
</field>
</field>
</record>
</odoo>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment