Commit 056920e2 by Yvon Kerdoncuff

Merge branch '5411-SUPERCAFOUTCH-Recherche-par-reference-fournisseur' into 'dev_cooperatic'

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

See merge request !69
parents d6c224a6 fd4e9820
......@@ -5,6 +5,7 @@
'summary': """
Retrieve data such as barcode for all available products (too long request with standard API),
average sales (for products in purchase order for ex.)
Miscellaneous : enable filtering on Vendor Product Code.
""",
'description': """
......@@ -24,7 +25,8 @@
'depends': ['base', 'product'],
# always loaded
'data': [
'data/ir_config_parameter_data.xml'
'data/ir_config_parameter_data.xml',
'views/product_view.xml'
],
'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_1" 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_2" 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