From a9a4a2e6b974f91bd50486cbfc6ed88a32bc4880 Mon Sep 17 00:00:00 2001 From: Nicolas Martinelli Date: Fri, 29 Jan 2016 10:37:58 +0100 Subject: [PATCH] [FIX] point_of_sale: invoice Salesman Commit a29e291 uses the SUPERUSER in order to create the invoice. However, we should still link the Salesman of the invoice to the PoS user. Fixes #10647 --- addons/point_of_sale/point_of_sale.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/point_of_sale/point_of_sale.py b/addons/point_of_sale/point_of_sale.py index 241fe5f6fee..edcdc4992f1 100644 --- a/addons/point_of_sale/point_of_sale.py +++ b/addons/point_of_sale/point_of_sale.py @@ -1132,6 +1132,7 @@ class pos_order(osv.osv): 'comment': order.note or '', 'currency_id': order.pricelist_id.currency_id.id, # considering partner's sale pricelist's currency 'company_id': company_id, + 'user_id': uid, } invoice = inv_ref.new(cr, uid, inv) invoice._onchange_partner_id()