From 88260a3f2c5be17b621f1c162b06a68ad7a546c1 Mon Sep 17 00:00:00 2001 From: Damien Bouvy Date: Fri, 6 Mar 2015 15:17:41 +0100 Subject: [PATCH] [FIX] analytic_contract_hr_expense: incorrect function signature no longer perturbates API wrappers (on_change returned result in list when expecting a dict when called from new api) --- .../analytic_contract_hr_expense.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/analytic_contract_hr_expense/analytic_contract_hr_expense.py b/addons/analytic_contract_hr_expense/analytic_contract_hr_expense.py index 5c251708d91..f9c2028f727 100644 --- a/addons/analytic_contract_hr_expense/analytic_contract_hr_expense.py +++ b/addons/analytic_contract_hr_expense/analytic_contract_hr_expense.py @@ -114,8 +114,8 @@ class account_analytic_account(osv.osv): digits_compute=dp.get_precision('Account')), } - def on_change_template(self, cr, uid, id, template_id, date_start=False, context=None): - res = super(account_analytic_account, self).on_change_template(cr, uid, id, template_id, date_start=date_start, context=context) + def on_change_template(self, cr, uid, ids, template_id, date_start=False, context=None): + res = super(account_analytic_account, self).on_change_template(cr, uid, ids, template_id, date_start=date_start, context=context) if template_id and 'value' in res: template = self.browse(cr, uid, template_id, context=context) res['value']['charge_expenses'] = template.charge_expenses