From bf6a041ce5aea6baa445af50c5b6ef37c9783eaf Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Fri, 5 Oct 2012 12:06:33 +0200 Subject: [PATCH] [FIX] sale_analytic_plans: fixed onchange_shop_id() bzr revid: qdp-launchpad@openerp.com-20121005100633-ryfhjv3gz54m9a2l --- addons/sale_analytic_plans/sale_analytic_plans.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/sale_analytic_plans/sale_analytic_plans.py b/addons/sale_analytic_plans/sale_analytic_plans.py index a16a0078f9f..872e8b0bffc 100644 --- a/addons/sale_analytic_plans/sale_analytic_plans.py +++ b/addons/sale_analytic_plans/sale_analytic_plans.py @@ -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: