← Back to team overview

openerp-dev-web team mailing list archive

Re: [Merge] lp:~openerp-dev/openobject-addons/trunk-bug-716107-ron into lp:openobject-addons

 

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.



References