Merge lp:~openerp-dev/openobject-addons/7.0-fixuomsalepurchase-dle into lp:openobject-addons/7.0

Proposed by Denis Ledoux (OpenERP)
Status: Work in progress
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-fixuomsalepurchase-dle
Merge into: lp:openobject-addons/7.0
Diff against target: 56 lines (+5/-5)
3 files modified
purchase/purchase_view.xml (+2/-2)
sale/sale_view.xml (+2/-2)
sale_stock/sale_stock_view.xml (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-fixuomsalepurchase-dle
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+202825@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

9787. By Denis Ledoux (OpenERP)

[FIX] sale, purchase: product uom change on product changed

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'purchase/purchase_view.xml'
2--- purchase/purchase_view.xml 2013-11-28 11:52:39 +0000
3+++ purchase/purchase_view.xml 2014-01-23 10:20:48 +0000
4@@ -205,7 +205,7 @@
5 <page string="Purchase Order">
6 <field name="order_line">
7 <tree string="Purchase Order Lines" editable="bottom">
8- <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,context)"/>
9+ <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,price_unit,context)"/>
10 <field name="name"/>
11 <field name="date_planned"/>
12 <field name="company_id" groups="base.group_multi_company" widget="selection"/>
13@@ -384,7 +384,7 @@
14 <sheet>
15 <group>
16 <group>
17- <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,context)"/>
18+ <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,price_unit,context)"/>
19 <label for="product_qty"/>
20 <div>
21 <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,context)" class="oe_inline"/>
22
23=== modified file 'sale/sale_view.xml'
24--- sale/sale_view.xml 2013-11-06 07:27:45 +0000
25+++ sale/sale_view.xml 2014-01-23 10:20:48 +0000
26@@ -179,7 +179,7 @@
27 <field name="product_id"
28 context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
29 groups="base.group_user"
30- on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, True, parent.date_order, False, parent.fiscal_position, False, context)"/>
31+ on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, False, product_uos_qty, product_uos, name, parent.partner_id, False, True, parent.date_order, False, parent.fiscal_position, False, context)"/>
32 <label for="product_uom_qty"/>
33 <div>
34 <field
35@@ -223,7 +223,7 @@
36 <field name="product_id"
37 context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
38 groups="base.group_user"
39- on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, product_uom, product_uos_qty, product_uos, name, parent.partner_id, False, True, parent.date_order, False, parent.fiscal_position, False, context)"/>
40+ on_change="product_id_change(parent.pricelist_id, product_id, product_uom_qty, False, product_uos_qty, product_uos, name, parent.partner_id, False, True, parent.date_order, False, parent.fiscal_position, False, context)"/>
41 <field name="name"/>
42 <field name="product_uom_qty"
43 context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
44
45=== modified file 'sale_stock/sale_stock_view.xml'
46--- sale_stock/sale_stock_view.xml 2013-03-04 18:44:31 +0000
47+++ sale_stock/sale_stock_view.xml 2014-01-23 10:20:48 +0000
48@@ -55,7 +55,7 @@
49 <field name="product_id"
50 context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"
51 groups="base.group_user"
52- on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,product_uom,product_uos_qty,product_uos,name,parent.partner_id, False, True, parent.date_order, product_packaging, parent.fiscal_position, False, context)"/>
53+ on_change="product_id_change(parent.pricelist_id,product_id,product_uom_qty,False,product_uos_qty,product_uos,name,parent.partner_id, False, True, parent.date_order, product_packaging, parent.fiscal_position, False, context)"/>
54 </field>
55 <field name="product_uom_qty" position="replace">
56 <field context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'shop':parent.shop_id, 'uom':product_uom}"