From cf710fc09b43867fc4319732ee62b47f53ea2612 Mon Sep 17 00:00:00 2001 From: lreficent Date: Fri, 20 Oct 2017 16:01:13 +0200 Subject: [PATCH] fix invoice address --- rma_repair/wizards/rma_order_line_make_repair.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rma_repair/wizards/rma_order_line_make_repair.py b/rma_repair/wizards/rma_order_line_make_repair.py index b959252d..ebb830db 100644 --- a/rma_repair/wizards/rma_order_line_make_repair.py +++ b/rma_repair/wizards/rma_order_line_make_repair.py @@ -35,7 +35,7 @@ class RmaLineMakeRepair(models.TransientModel): 'refurbish_product_id': refurbish_product_id, 'location_id': line.location_id.id, 'location_dest_id': line.location_id.id, - 'invoice_method': 'after_repair' + 'invoice_method': 'after_repair', } @api.model @@ -165,4 +165,5 @@ class RmaLineMakeRepairItem(models.TransientModel): 'refurbish_product_id': self.refurbish_product_id.id, 'to_refurbish': self.to_refurbish, 'invoice_method': self.invoice_method, + 'partner_invoice_id': rma_line.invoice_address_id.id, }