From 4fe5f0cfa8c1736a25902337cae316b3c3709ea5 Mon Sep 17 00:00:00 2001 From: Bhavesh Odedra Date: Fri, 24 May 2019 19:18:48 +0530 Subject: [PATCH] [FIX] bring Lot/Serial,Delivery Address and Invoicing Address when create a repair order --- rma_repair/README.rst | 1 + rma_repair/__manifest__.py | 2 +- rma_repair/wizards/rma_order_line_make_repair.py | 5 ++++- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/rma_repair/README.rst b/rma_repair/README.rst index 31a2c1cd..e19e5f22 100644 --- a/rma_repair/README.rst +++ b/rma_repair/README.rst @@ -41,6 +41,7 @@ Contributors * Aaron Henriquez * Lois Rilo * Akim Juillerat +* Bhavesh Odedra Maintainer ---------- diff --git a/rma_repair/__manifest__.py b/rma_repair/__manifest__.py index 4d6b0ba7..d69d5705 100644 --- a/rma_repair/__manifest__.py +++ b/rma_repair/__manifest__.py @@ -3,7 +3,7 @@ { "name": "RMA Repair", - "version": "12.0.1.0.0", + "version": "12.0.1.1.0", "license": "LGPL-3", "category": "RMA", "summary": "Links RMA with Repairs.", diff --git a/rma_repair/wizards/rma_order_line_make_repair.py b/rma_repair/wizards/rma_order_line_make_repair.py index 92875963..7ecec20c 100644 --- a/rma_repair/wizards/rma_order_line_make_repair.py +++ b/rma_repair/wizards/rma_order_line_make_repair.py @@ -150,6 +150,7 @@ class RmaLineMakeRepairItem(models.TransientModel): rma_line.product_id.property_stock_refurbish) refurbish_location_dest_id = (self.location_dest_id.id if self.to_refurbish else False) + addr = rma_line.partner_id.address_get(['delivery', 'invoice']) return { 'product_id': rma_line.product_id.id, 'partner_id': rma_line.partner_id.id, @@ -163,5 +164,7 @@ 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, + 'address_id': addr['delivery'], + 'partner_invoice_id': addr['invoice'], + 'lot_id': rma_line.lot_id.id, }