[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user