From a1d05720eec0396a934fa25dc9354c6c6ef72c91 Mon Sep 17 00:00:00 2001 From: Florian da Costa Date: Fri, 29 Sep 2023 17:21:36 +0200 Subject: [PATCH] [FIX] takes invoice and delivery address when creating a rma from a sale order --- rma_sale/wizards/rma_add_sale.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rma_sale/wizards/rma_add_sale.py b/rma_sale/wizards/rma_add_sale.py index d9f3ec4d..a1d03429 100644 --- a/rma_sale/wizards/rma_add_sale.py +++ b/rma_sale/wizards/rma_add_sale.py @@ -129,8 +129,8 @@ class RmaAddSale(models.TransientModel): "uom_id": line.product_uom.id, "operation_id": operation.id, "product_qty": product_qty, - "delivery_address_id": self.sale_id.partner_id.id, - "invoice_address_id": self.sale_id.partner_id.id, + "delivery_address_id": self.sale_id.partner_shipping_id.id, + "invoice_address_id": self.sale_id.partner_invoice_id.id, "price_unit": line.currency_id._convert( line.price_unit, line.currency_id,