Review: Needs Fixing

These are big changes to introduce in stable. I propose you to do it in a more 
simple way.
Try to use a context in the method product_id_change. In the view definition, 
send in the context the column that calls the method. Example:
  <field                                             
context="partner_id=parent.partner_id,quantity=product_uom_qty,pricelist=parent.pricelist_id,shop=parent.shop_id,uom=product_uom"
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,
 'lang' in context and context['lang'], False, parent.date_order, 
product_packaging, parent.fiscal_position, True, 
context={'column':'product_uom_qty'})"/>
and use this context in the method definition so you can adapt values to change.

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-19882-ado/+merge/89423
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-19882-ado.

_______________________________________________
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