Review: Needs Fixing
def on_change_unit_amount(self, cr, uid, id, prod_id, quantity, company_id, 
unit=False, .....):

    => We have unit = product_uom_id argument on onchange so we can use it if 
there is unit no need to return it again.

you can test like:
if product_id and not unit:
   product_uom_id = prod.uom_id.id

thank you,
mra

-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-716107-ron/+merge/50566
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-716107-ron.

_______________________________________________
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