mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[FIX] use Session.user_context in hotel calendar
This commit is contained in:
@@ -169,12 +169,12 @@ return AbstractModel.extend({
|
|||||||
},
|
},
|
||||||
|
|
||||||
save_changes: function(params) {
|
save_changes: function(params) {
|
||||||
params.splice(0, 0, false); // FIXME: ID=False because first parameter its an integer
|
// params.splice(0, 0, false); // FIXME: ID=False because first parameter its an integer
|
||||||
return this._rpc({
|
return this._rpc({
|
||||||
model: 'hotel.calendar.management',
|
model: 'hotel.calendar.management',
|
||||||
method: 'save_changes',
|
method: 'save_changes',
|
||||||
args: params,
|
args: params,
|
||||||
//context: Session.user_context,
|
context: Session.user_context,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user