[FIX] purchase: fixed product_uom and price_unit update on product_id change on purch...
authorDavid Monjoie <dmo@odoo.com>
Thu, 30 Oct 2014 10:19:18 +0000 (11:19 +0100)
committerDavid Monjoie <dmo@odoo.com>
Thu, 30 Oct 2014 11:31:37 +0000 (12:31 +0100)
addons/purchase/purchase_view.xml

index c719707..8056da2 100644 (file)
                     <sheet>
                         <group>
                             <group>
-                                <field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,0,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,price_unit,'draft',context)"/>
+                                <field name="product_id" on_change="onchange_product_id(parent.pricelist_id,product_id,0,False,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,False,'draft',context)"/>
                                 <label for="product_qty"/>
                                 <div>
                                     <field name="product_qty" on_change="onchange_product_id(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id,parent.date_order,parent.fiscal_position,date_planned,name,price_unit,'draft',context)" class="oe_inline"/>