Review: Needs Fixing
Your fix goes beyond the expected behavior. It shouldn't do anything when no
product is selected.
You should simply replace
v = {'product_uom': prod.uom_id.id}
if not name:
v['name'] = prod.name
by:
v = {'name': prod.name, 'product_uom': prod.uom_id.id}
Raphael
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-17894-pso/+merge/77873
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-17894-pso.
_______________________________________________
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