[FIX]inv.number for inv.name

Description of the issue/feature this PR addresses:
Throwing error when try to select 'Originating Sales Order Line'.

Current behavior before PR:
Raise following errors:
RecursionError: maximum recursion depth exceeded while calling a Python object
UnicodeError: unable to convert <odoo.tools.func.lazy object at 0x7f3af88aa240>

Desired behavior after PR is merged:
Select 'Originating Sales Order Line' normally.
This commit is contained in:
Anderson Saraiva
2020-10-19 15:10:47 +01:00
committed by AaronHForgeFlow
parent 97e2d3ed02
commit e57f217b4a

View File

@@ -47,7 +47,7 @@ class SaleOrderLine(models.Model):
" ".join(
str(x)
for x in [
inv.number for inv in sale.order_id.invoice_ids
inv.name for inv in sale.order_id.invoice_ids
]
),
sale.product_id.name,