[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
This commit is contained in:
Denis Ledoux 2015-07-01 14:33:21 +02:00
parent 0939738479
commit 78568b59ab
1 changed files with 1 additions and 1 deletions

View File

@ -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,