[IMP] product_usability: forward-port seller_id now a computed field with search method

stock_usability: Add seller_id on orderpoints.
This commit is contained in:
Alexis de Lattre
2025-05-20 10:09:43 +02:00
parent 1b469946c0
commit 8cc20fa84f
5 changed files with 57 additions and 6 deletions

View File

@@ -32,5 +32,15 @@
</field>
</record>
<record id="product_product_tree_view" model="ir.ui.view">
<field name="name">usability.product.product.tree</field>
<field name="model">product.product</field>
<field name="inherit_id" ref="product.product_product_tree_view"/>
<field name="arch" type="xml">
<field name="company_id" position="before">
<field name="seller_id" optional="hide"/>
</field>
</field>
</record>
</odoo>

View File

@@ -14,7 +14,7 @@
<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" domain="[('parent_id', '=', False)]"/>
</field>
<filter name="type" position="attributes">
<attribute name="context">{'group_by': 'detailed_type'}</attribute>