diff options
| author | David Monjoie <dmo@odoo.com> | 2014-10-30 14:41:15 +0100 |
|---|---|---|
| committer | David Monjoie <dmo@odoo.com> | 2014-11-03 09:09:52 +0100 |
| commit | 4f973248dc2eafe05b4e2b8ac3b749bcfb2ff406 (patch) | |
| tree | 52c26e4dedb63e1287b6614ea04c08c91941514b | |
| parent | 70b49a7608809e41768088203129cb81dcc63d48 (diff) | |
[FIX] purchase: fixed recomputation of unit price when changing product quantity or uom
| -rw-r--r-- | addons/purchase/purchase_view.xml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 8056da23e71..e1fce87dc8a 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -242,8 +242,8 @@ <field name="date_planned"/> <field name="company_id" groups="base.group_multi_company" widget="selection"/> <field name="account_analytic_id" groups="purchase.group_analytic_accounting" domain="[('type','not in',('view','template'))]"/> - <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,parent.state,context)"/> - <field name="product_uom" groups="product.group_uom" on_change="onchange_product_uom(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,price_unit,parent.state,context)"/> + <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,False,parent.state,context)"/> + <field name="product_uom" groups="product.group_uom" on_change="onchange_product_uom(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,False,parent.state,context)"/> <field name="price_unit"/> <field name="taxes_id" widget="many2many_tags" domain="[('parent_id','=',False),('type_tax_use','!=','sale')]"/> <field name="price_subtotal"/> @@ -422,8 +422,8 @@ <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"/> - <field name="product_uom" groups="product.group_uom" on_change="onchange_product_uom(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"/> + <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,False,'draft',context)" class="oe_inline"/> + <field name="product_uom" groups="product.group_uom" on_change="onchange_product_uom(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,False,'draft',context)" class="oe_inline"/> </div> <field name="price_unit"/> </group> |
