[UPD] filter pricelist in channel management

This commit is contained in:
Pablo
2019-03-06 11:55:20 +01:00
committed by Dario Lodeiros
parent 5493214bb8
commit ccc3c60967
3 changed files with 4 additions and 3 deletions

View File

@@ -40,10 +40,12 @@ return AbstractModel.extend({
},
get_pricelists: function () {
var domain = [];
domain.push(['pricelist_type', '=', 'daily']);
return this._rpc({
model: 'product.pricelist',
method: 'search_read',
args: [false, ['id','name']],
args: [domain, ['id','name']],
context: Session.user_context,
});
},

View File

@@ -196,7 +196,7 @@ var HotelCalendarManagementView = View.extend({
generate_hotel_calendar: function(){
var self = this;
debugger;
/** DO MAGIC **/
var params = this.generate_params();
var oparams = [params['dates'][0], params['dates'][1], false, false, true];

View File

@@ -10,7 +10,6 @@ odoo.define('hotel_calendar_channel_connector.PMSHotelCalendarRenderer', functio
update_buttons_counter_channel_connector: function (nreservations, nissues) {
// Cloud Reservations
debugger;
var $text = this.$el.find('#btn_channel_manager_request .cloud-text');
$text.text(nreservations);
if (nreservations > 0) {