From fbd3bbf2e903a8294d363e28ad5b4e69d65cbd38 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Mon, 24 Aug 2015 18:37:34 +0200 Subject: [PATCH] [FIX] hr_timesheet_invoice: correct variable name Typo introduced during last forward-port (88c0ce0) --- addons/hr_timesheet_invoice/hr_timesheet_invoice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py index f040bf815d2..8fd79a74032 100644 --- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py +++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py @@ -249,7 +249,7 @@ class account_analytic_line(osv.osv): # key_id is either an account.analytic.account, either a res.partner # don't really care, what's important is the analytic lines that # will be used to create the invoice lines - account = analytic_lines[0].account_id + account = analytic_line_ids[0].account_id partner = account.partner_id # will be the same for every line if (not partner) or not (currency_id): raise UserError(_('Contract incomplete. Please fill in the Customer and Pricelist fields for %s.') % (account.name))