From 58b3dc6a357612bdc32b5dbfc57f0178c267ade2 Mon Sep 17 00:00:00 2001 From: "Andrea Grazioso (agr-odoo)" Date: Fri, 26 Jun 2020 14:08:51 +0000 Subject: [PATCH] [FIX] repair: add shipping info to invoice - Create a repair order - Choose a customer A - Change the invoicing address to customer B > set default - Create invoice The delivery address set on the repair order is not taken into account on the invoice. The delivery address field on the invoice stays empty despite having a delivery address set up on the repair order. opw-2285659 closes odoo/odoo#53831 X-original-commit: e109faec5f1e14864addfb1eb56c508ab04f6eb0 Signed-off-by: Nicolas Martinelli (nim) --- addons/repair/models/repair.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/repair/models/repair.py b/addons/repair/models/repair.py index 36c5ff1ca4e..6a28defd8d2 100644 --- a/addons/repair/models/repair.py +++ b/addons/repair/models/repair.py @@ -332,6 +332,7 @@ class Repair(models.Model): invoice_vals = { 'move_type': 'out_invoice', 'partner_id': partner_invoice.id, + 'partner_shipping_id': repair.address_id.id, 'currency_id': currency.id, 'narration': narration, 'line_ids': [],