[FIX] point_of_sale: create orders with the correct context

The timezone of the user was not passed and preventing the use of context_today
as showed at #22651
This commit is contained in:
Martin Trigaux
2018-04-11 16:31:34 +02:00
parent fcd81acaea
commit 7272abe0e3
@@ -940,6 +940,7 @@ exports.PosModel = Backbone.Model.extend({
model: 'pos.order',
method: 'create_from_ui',
args: args,
kwargs: {context: session.user_context},
}, {
timeout: timeout,
shadow: !options.to_invoice