[FIX] sale_analytic_plans: fixed onchange_shop_id()

bzr revid: qdp-launchpad@openerp.com-20121005100633-ryfhjv3gz54m9a2l
This commit is contained in:
Quentin (OpenERP) 2012-10-05 12:06:33 +02:00
parent 8f9a8c5478
commit bf6a041ce5
1 changed files with 2 additions and 2 deletions

View File

@ -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: