[pricelist],saprate the action for the purchase and sale pricelist

bzr revid: amb@tinyerp.com-20111108112700-7q0wwzvb8krot8ry
This commit is contained in:
Amit Bhavsar (Open ERP)
2011-11-08 16:57:00 +05:30
parent 2684803fad
commit 8c050cca05
2 changed files with 14 additions and 1 deletions
+13
View File
@@ -165,6 +165,19 @@
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="product_pricelist_view_search" />
<field name="context">{"search_default_type":"sale"}</field>
<field name="domain">[('type','=','sale')]</field>
<field name="help">A price list contains rules to be evaluated in order to compute the purchase or sales price for all the partners assigned to a price list. Price lists have several versions (2010, 2011, Promotion of February 2010, etc.) and each version has several rules. Example: the customer price of a product category will be based on the supplier price multiplied by 1.80.</field>
</record>
<record id="product_pricelist_action_for_purchase" model="ir.actions.act_window">
<field name="name">Pricelists</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.pricelist</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="product_pricelist_view_search" />
<field name="context">{"search_default_type":"purchase"}</field>
<field name="domain">[('type','=','purchase')]</field>
<field name="help">A price list contains rules to be evaluated in order to compute the purchase or sales price for all the partners assigned to a price list. Price lists have several versions (2010, 2011, Promotion of February 2010, etc.) and each version has several rules. Example: the customer price of a product category will be based on the supplier price multiplied by 1.80.</field>
</record>
<menuitem
+1 -1
View File
@@ -21,7 +21,7 @@
parent="menu_purchase_config_pricelist" sequence="20"/>
<menuitem
action="product.product_pricelist_action2" id="menu_product_pricelist_action2_purchase"
action="product.product_pricelist_action_for_purchase" id="menu_product_pricelist_action2_purchase"
parent="menu_purchase_config_pricelist" sequence="10"/>
<!--<menuitem