summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-06-26 14:08:51 +0000
committerAndrea Grazioso (agr-odoo) <agr@odoo.com>2020-06-29 16:01:03 +0000
commit58b3dc6a357612bdc32b5dbfc57f0178c267ade2 (patch)
treecc77c1e132916b846a7db4e7caf6164516ea7903 /addons
parent65c71a5a7ab55c9b3b5c256d98d92006ae4d27e3 (diff)
[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>
Diffstat (limited to 'addons')
-rw-r--r--addons/repair/models/repair.py1
1 files changed, 1 insertions, 0 deletions
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': [],