Dear Olivier,

I think we need at least one change : in the view ID "view_order_form" from the 
"sale" module, we have 

<field name="product_id" [...]
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)"/>

[...]

<field name="product_uom_qty" [...]                                     
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, False, parent.date_order, product_packaging, parent.fiscal_position, 
True, context)"/>

As you can see, the on_change is the same for the field "product_id" and the 
field "product_uom_qty". This is the core of the problem for me. We need to 
have 2 different on_change functions : one for product_id and one for 
product_uom_qty.

Once we have this change, we will be able to easily inherit the on_change 
function to have the behavior we want. For the moment, we can't.

Could we at least have this change in trunk ? I understand that it's not 
possible to make such a change in the stable branch.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-381574-rgo/+merge/93978
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-381574-rgo.

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to