From 1cf12a9ae4a9aaac2ded44093d0e3dd295adce77 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Tue, 18 Jul 2017 15:56:33 +0200 Subject: [PATCH] [FIX] sale: keep Salesperson When creating an advance from a SO, the Salesperson is not kept. opw-752490 --- addons/sale/wizard/sale_make_invoice_advance.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index e98a39694ea..7f27ccf4570 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -113,6 +113,7 @@ class SaleAdvancePaymentInv(models.TransientModel): 'payment_term_id': order.payment_term_id.id, 'fiscal_position_id': order.fiscal_position_id.id or order.partner_id.property_account_position_id.id, 'team_id': order.team_id.id, + 'user_id': order.user_id.id, 'comment': order.note, }) invoice.compute_taxes()