[IMP] stock,purchase: add Product Variants menuitem in the Inventory and Purchase apps.
* Provides an easier acces to product variants from those apps
* Fix the name of the generic product variants action in the product module.
This commit is contained in:
committed by
Tanguy Charlier
parent
170d7475ae
commit
1427b3660c
@@ -204,7 +204,7 @@
|
||||
</record>
|
||||
|
||||
<record id="product_normal_action" model="ir.actions.act_window">
|
||||
<field name="name">Product</field>
|
||||
<field name="name">Product Variants</field>
|
||||
<field name="type">ir.actions.act_window</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="view_mode">tree,form,kanban</field>
|
||||
|
||||
@@ -91,6 +91,30 @@
|
||||
<menuitem name="Products" id="menu_procurement_partner_contact_form" action="product_normal_action_puchased"
|
||||
parent="menu_procurement_management" sequence="20"/>
|
||||
|
||||
<record id="product_product_action" model="ir.actions.act_window">
|
||||
<field name="name">Product Variants</field>
|
||||
<field name="res_model">product.product</field>
|
||||
<field name="view_mode">tree,kanban,form</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="context">{"search_default_filter_to_purchase": 1}</field>
|
||||
<field name="help" type="html">
|
||||
<p class="oe_view_nocontent_create">
|
||||
Click to define a new product.
|
||||
</p><p>
|
||||
You must define a product for everything you purchase, whether
|
||||
it's a physical product, a consumable or services you buy to
|
||||
subcontractors.
|
||||
</p><p>
|
||||
The product form contains detailed information to improve the
|
||||
purchase process: prices, procurement logistics, accounting data,
|
||||
available vendors, etc.
|
||||
</p>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
<menuitem id="product_product_menu" name="Product Variants" action="product_product_action"
|
||||
parent="menu_procurement_management" sequence="21" groups="product.group_product_variant"/>
|
||||
|
||||
<record model="ir.ui.view" id="purchase_order_calendar">
|
||||
<field name="name">purchase.order.calendar</field>
|
||||
<field name="model">purchase.order</field>
|
||||
|
||||
@@ -29,6 +29,9 @@
|
||||
action="product.product_template_action_product" id="menu_product_variant_config_stock" name="Products"
|
||||
parent="stock.menu_stock_inventory_control" sequence="1"/>
|
||||
|
||||
<menuitem id="product_product_menu" name="Product Variants" action="product.product_normal_action"
|
||||
parent="menu_stock_inventory_control" sequence="2" groups="product.group_product_variant"/>
|
||||
|
||||
<menuitem
|
||||
action="product.product_category_action_form" id="menu_product_category_config_stock"
|
||||
parent="stock.menu_product_in_config_stock" sequence="2"/>
|
||||
@@ -1859,7 +1862,7 @@
|
||||
<menuitem
|
||||
id="menu_reordering_rules_config"
|
||||
action="action_orderpoint_form"
|
||||
name="Reordering Rules" parent="menu_stock_inventory_control" sequence="2"/>
|
||||
name="Reordering Rules" parent="menu_stock_inventory_control" sequence="10"/>
|
||||
|
||||
<act_window
|
||||
context="{'search_default_warehouse_id': active_id, 'default_warehouse_id': active_id}"
|
||||
|
||||
Reference in New Issue
Block a user