mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP] Adapt to hotel module changes
This commit is contained in:
@@ -221,8 +221,8 @@ var PMSCalendarController = AbstractController.extend({
|
||||
|
||||
_onUpdateButtonsCounter: function (ev) {
|
||||
var self = this;
|
||||
var domain_checkouts = [['is_checkout', '=', true]];
|
||||
var domain_checkins = [['is_checkin', '=', true]];
|
||||
var domain_checkouts = [['checkout', '=', moment().format(HotelConstants.ODOO_DATETIME_MOMENT_FORMAT)]];
|
||||
var domain_checkins = [['checkin', '=', moment().format(HotelConstants.ODOO_DATETIME_MOMENT_FORMAT)]];
|
||||
var domain_overbookings = [['overbooking', '=', true], ['state', 'not in', ['cancelled']]];
|
||||
$.when(
|
||||
this.model.search_count(domain_checkouts),
|
||||
|
||||
@@ -73,7 +73,7 @@ return AbstractModel.extend({
|
||||
},
|
||||
get_amenities: function() {
|
||||
return this._rpc({
|
||||
model: 'hotel.room.amenities',
|
||||
model: 'hotel.amenity',
|
||||
method: 'search_read',
|
||||
args: [false, ['id','name']],
|
||||
context: Session.user_context,
|
||||
|
||||
Reference in New Issue
Block a user