mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[WIP] retrieve data in calendar by product.pricelist and hotel
This commit is contained in:
@@ -40,7 +40,7 @@ return AbstractModel.extend({
|
||||
},
|
||||
|
||||
get_pricelists: function () {
|
||||
var domain = [];
|
||||
var domain = [['hotel_ids', 'in', Session.user_hotels.current_hotel[0]]];
|
||||
domain.push(['pricelist_type', '=', 'daily']);
|
||||
return this._rpc({
|
||||
model: 'product.pricelist',
|
||||
@@ -51,10 +51,11 @@ return AbstractModel.extend({
|
||||
},
|
||||
|
||||
get_restrictions: function () {
|
||||
var domain = [['hotel_id', '=', Session.user_hotels.current_hotel[0]]];
|
||||
return this._rpc({
|
||||
model: 'hotel.room.type.restriction',
|
||||
method: 'search_read',
|
||||
args: [false, ['id','name']],
|
||||
args: [domain, ['id','name']],
|
||||
context: Session.user_context,
|
||||
});
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user