[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) <nim@odoo.com>
This commit is contained in:
Andrea Grazioso (agr-odoo)
2020-06-29 16:01:03 +00:00
parent 65c71a5a7a
commit 58b3dc6a35
+1
View File
@@ -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': [],