[FIX] sale_analytic_plans: fixed onchange_shop_id()
bzr revid: qdp-launchpad@openerp.com-20121005100633-ryfhjv3gz54m9a2l
This commit is contained in:
parent
8f9a8c5478
commit
bf6a041ce5
|
@ -46,7 +46,7 @@ class sale_order(osv.osv):
|
|||
# Remove the project_id from the result of super() call, if any, as this field is not in the view anymore
|
||||
res = super(sale_order, self).onchange_shop_id(cr, uid, ids, shop_id, context=context)
|
||||
if res.get('value',{}).get('project_id'):
|
||||
del(res['value']['porject_id'])
|
||||
return {'value': res}
|
||||
del(res['value']['project_id'])
|
||||
return res
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
Loading…
Reference in New Issue