[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
This commit is contained in:
Nicolas Martinelli
2016-01-29 13:16:53 +01:00
parent a842199687
commit a9a4a2e6b9
+1
View File
@@ -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()