[IMP] Adapt to hotel module changes

This commit is contained in:
QS5ELkMu
2018-11-09 20:55:26 +01:00
parent 233735bb48
commit 24e8d2a7d7
27 changed files with 57 additions and 461 deletions

View File

@@ -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),

View File

@@ -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,