Skip to content

Commit

Permalink
[IMP] Add variants menu to the purchase module
Browse files Browse the repository at this point in the history
  • Loading branch information
zakiuu committed Nov 9, 2016
1 parent ad24156 commit 755cb86
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
1 change: 1 addition & 0 deletions purchase_product_variant_configurator/__openerp__.py
Expand Up @@ -29,6 +29,7 @@
"data": [
"views/inherited_purchase_order_views.xml",
"views/inherited_purchase_order_line_views.xml",
"views/inherited_product_product_views.xml"
],
"installable": True,
"post_init_hook": "assign_product_template",
Expand Down
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
<record id="variant_purchase_action" model="ir.actions.act_window">
<field name="name">Variantes</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.product</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form</field>
<field name="context">{"search_default_filter_to_purchase":1}</field>
</record>

<menuitem action="variant_purchase_action" id="variant_purchase_menu"
parent="purchase.menu_procurement_management"
sequence="30"/>
</data>
</openerp>

0 comments on commit 755cb86

Please sign in to comment.