Quick create product from work center form view m2o field supply method should be...
authorPriyanka Jani(OpenERP Trainee) <>
Thu, 2 May 2013 09:41:21 +0000 (15:11 +0530)
committerRGA(OpenERP) <>
Thu, 2 May 2013 09:41:21 +0000 (15:11 +0530)
bzr revid: rgaopenerp-20130502094121-dzqbjlzu1rgo7euk

addons/mrp/mrp_view.xml

index 2af1e87..cf2db4d 100644 (file)
                                     <field name="time_stop" widget="float_time"/>
                                 </group>
                                 <group string="Costing Information">
-                                    <field name="product_id" on_change="on_change_product_cost(product_id)"/>
+                                    <field name="product_id" on_change="on_change_product_cost(product_id)" context="{'default_supply_method':'produce'}"/>
                                     <field name="costs_hour"/>
                                     <field name="costs_hour_account_id" groups="analytic.group_analytic_accounting"/>
                                     <field name="costs_cycle"/>