From 199878a569c48a73bd80a90726cfb4b4de882ba4 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Tue, 30 Mar 2021 16:19:39 +0000 Subject: [PATCH] [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) --- addons/repair/models/repair.py | 1 - 1 file changed, 1 deletion(-) diff --git a/addons/repair/models/repair.py b/addons/repair/models/repair.py index 0a9608d9d42..3fd0f179165 100644 --- a/addons/repair/models/repair.py +++ b/addons/repair/models/repair.py @@ -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': [],