stock_usability: Add supplier in orderpoint list view

Hide unneeded "Automate orders" in orderpoint list view
product_usability: add seller_id in tree/search view of product.product and product.template
This commit is contained in:
Alexis de Lattre
2023-07-14 15:41:02 +02:00
parent 8afcd49bc3
commit c4ec388380
3 changed files with 27 additions and 1 deletions

View File

@@ -32,5 +32,16 @@
</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.name', 'ilike', self)]"/>
<field name="seller_id" string="Main Supplier"/>
</field>
</field>
</record>
@@ -32,4 +32,14 @@
</field>
</record>
<record id="product_template_tree_view" model="ir.ui.view">
<field name="model">product.template</field>
<field name="inherit_id" ref="product.product_template_tree_view"/>
<field name="arch" type="xml">
<field name="barcode" position="after">
<field name="seller_id" optional="hide"/>
</field>
</field>
</record>
</odoo>

View File

@@ -28,6 +28,11 @@
<field name="route_id" position="attributes">
<attribute name="optional">show</attribute>
</field>
<!-- Button 'Automate Orders' is not needed because the user
can manually change the 'Trigger' field. And it takes a
lot of room in the tree view -->
<!-- TODO I tried many things to avoid a replace... but it didn't work -->
<button name="action_replenish_auto" position="replace"/>
</field>
</record>