mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[UPD] filter pricelist in channel management
This commit is contained in:
@@ -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,
|
||||
});
|
||||
},
|
||||
|
||||
@@ -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];
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user