From 8af3a6943edee814283ac879fa65c3ce44e0492f Mon Sep 17 00:00:00 2001 From: "Quentin (OpenERP)" Date: Fri, 15 Jun 2012 11:12:15 +0200 Subject: [PATCH] [FIX] hr_timesheet_invoice: fix wrong reference to method bzr revid: qdp-launchpad@openerp.com-20120615091215-fbau2pvh3dgg4sfc --- addons/hr_timesheet_invoice/hr_timesheet_invoice.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py index 09e5680717e..15355982e6c 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py @@ -82,8 +82,9 @@ class account_analytic_account(osv.osv): res = {'value': {}} if use_timesheets: ir_model_obj = self.pool.get('ir.model.data') - res['value']['to_invoice'] = ir_model_obj.get_reference(cr, uid, 'hr_timesheet_invoice', 'timesheet_invoice_factor1')[1] + res['value']['to_invoice'] = ir_model_obj.get_object_reference(cr, uid, 'hr_timesheet_invoice', 'timesheet_invoice_factor1')[1] return res + def on_change_partner_id(self, cr, uid, ids,partner_id, name, context=None): res = super(account_analytic_account,self).on_change_partner_id(cr, uid, ids,partner_id, name, context=context) part = self.pool.get('res.partner').browse(cr, uid, partner_id,context=context)