summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2015-07-01 14:33:21 +0200
committerDenis Ledoux <dle@odoo.com>2015-07-01 14:36:56 +0200
commit78568b59ab03988d2c8156168cab900750d39d2f (patch)
tree61f0723de00981409563c5ad1f31539ac456ce38 /addons
parent09397384795f440b5924d9b325988e9cc6eb4d09 (diff)
[FIX] hr_timesheet_invoice: invoice tasks without factor customer_name
In Project > Invoicing > Invoice Tasks, When selecting several lines to invoice, with a factor (`to_invoice') without `customer_name` opw-643794
Diffstat (limited to 'addons')
-rw-r--r--addons/hr_timesheet_invoice/hr_timesheet_invoice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py
index 34cea3c92cf..3e65338932f 100644
--- a/addons/hr_timesheet_invoice/hr_timesheet_invoice.py
+++ b/addons/hr_timesheet_invoice/hr_timesheet_invoice.py
@@ -199,7 +199,7 @@ class account_analytic_line(osv.osv):
unit_price = total_price*-1.0 / total_qty
factor = self.pool['hr_timesheet_invoice.factor'].browse(cr, uid, factor_id, context=uom_context)
- factor_name = factor.customer_name
+ factor_name = factor.customer_name or ''
curr_invoice_line = {
'price_unit': unit_price,
'quantity': total_qty,