[FIX] repair: Invoice lines are not added for Repair

Steps to reproduce the bug:

- In Repair: create a new repair order
- add some product to "Add' and operation.
- Select option for Invoice Method: Before/After Repair.
- Confirm Repair, finish repair and create invoice.

Bug:

No line was created in the invoice

PS: the invoice_line_ids were popped from function _move_autocomplete_invoice_lines_create

opw:2493091

closes odoo/odoo#68587

X-original-commit: 952ff15a3af90bb32660262b4fd32ca8a1172eac
Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
This commit is contained in:
Goffin Simon
2021-03-31 10:52:11 +00:00
parent f1a0e164ea
commit 199878a569
-1
View File
@@ -346,7 +346,6 @@ class Repair(models.Model):
'partner_shipping_id': repair.address_id.id,
'currency_id': currency.id,
'narration': narration,
'line_ids': [],
'invoice_origin': repair.name,
'repair_ids': [(4, repair.id)],
'invoice_line_ids': [],