[IMP]MRP : Add context in product action
bzr revid: hsa@tinyerp.com-20120925064030-ts2zed5vkznj9puj
This commit is contained in:
parent
fe3b453e98
commit
7e3367ccc5
|
@ -516,12 +516,11 @@
|
|||
|
||||
<record id="product_supply_method_produce" model="ir.actions.act_window">
|
||||
<field name="name">Products</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" eval="{'search_default_supply_method': 'produce'}"/>
|
||||
<field name="view_id" ref="product.product_kanban_view"/>
|
||||
<field name="context">{'search_default_filter_supply_method_produce' : 1}</field>
|
||||
<field name="search_view_id" ref="product.product_search_form_view"/>
|
||||
</record>
|
||||
<!-- BOM menus -->
|
||||
|
||||
|
|
|
@ -16,6 +16,7 @@
|
|||
<filter string="Can be Sold" name="filter_to_sell" icon="terp-accessories-archiver-minus" domain="[('sale_ok','=',1)]"/>
|
||||
<filter name="filter_to_purchase" string="Can be Purchased" icon="terp-accessories-archiver+" domain="[('purchase_ok', '=', 1)]"/>
|
||||
<field name="categ_id" operator="child_of"/>
|
||||
<filter name="filter_supply_method_produce" string="Can be Produced" icon="terp-accessories-archiver+" domain="[('supply_method', '=', 'produce')]"/>
|
||||
<group expand="0" string="Context...">
|
||||
<field name="pricelist_id" context="{'pricelist': self}" groups="product.group_sale_pricelist"/>
|
||||
<field name="company_id" groups="base.group_multi_company"/>
|
||||
|
|
Loading…
Reference in New Issue