|
@ -30,7 +30,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
|
|
|
|
|
|
show: function(){ |
|
|
show: function(){ |
|
|
var self = this; |
|
|
var self = this; |
|
|
if (this.pos.config.balance_id) { |
|
|
|
|
|
|
|
|
if (this.pos.config.is_balance_free) { |
|
|
var queue = this.pos.proxy_queue; |
|
|
var queue = this.pos.proxy_queue; |
|
|
|
|
|
|
|
|
var container = this.gui.get_current_screen_param('container'); |
|
|
var container = this.gui.get_current_screen_param('container'); |
|
@ -398,7 +398,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
'name':'balancescale', |
|
|
'name':'balancescale', |
|
|
'widget': BalanceScaleScreenWidget, |
|
|
'widget': BalanceScaleScreenWidget, |
|
|
'condition': function(){ |
|
|
'condition': function(){ |
|
|
return this.pos.config.balance_id; |
|
|
|
|
|
|
|
|
return this.pos.config.is_balance_free; |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@ -642,7 +642,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
'name':'products-balance', |
|
|
'name':'products-balance', |
|
|
'widget': ProductBalanceScreenWidget, |
|
|
'widget': ProductBalanceScreenWidget, |
|
|
'condition': function(){ |
|
|
'condition': function(){ |
|
|
return this.pos.config.balance_id; |
|
|
|
|
|
|
|
|
return this.pos.config.is_balance_free; |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@ -765,7 +765,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
'name':'balancecontainerscale', |
|
|
'name':'balancecontainerscale', |
|
|
'widget': BalanceContainerScaleScreenWidget, |
|
|
'widget': BalanceContainerScaleScreenWidget, |
|
|
'condition': function(){ |
|
|
'condition': function(){ |
|
|
return this.pos.config.balance_id; |
|
|
|
|
|
|
|
|
return this.pos.config.is_balance_free; |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@ -820,7 +820,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
'name': 'presentation', |
|
|
'name': 'presentation', |
|
|
'widget': PresentationScreenWidget, |
|
|
'widget': PresentationScreenWidget, |
|
|
'condition': function(){ |
|
|
'condition': function(){ |
|
|
return this.pos.config.balance_id; |
|
|
|
|
|
|
|
|
return this.pos.config.is_balance_free; |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@ -928,7 +928,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
'name': 'confirmation', |
|
|
'name': 'confirmation', |
|
|
'widget': ConfirmationScreen, |
|
|
'widget': ConfirmationScreen, |
|
|
'condition': function(){ |
|
|
'condition': function(){ |
|
|
return this.pos.config.balance_id; |
|
|
|
|
|
|
|
|
return this.pos.config.is_balance_free; |
|
|
}, |
|
|
}, |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
@ -936,14 +936,14 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
chrome.Chrome.include({ |
|
|
chrome.Chrome.include({ |
|
|
build_widgets: function(){ |
|
|
build_widgets: function(){ |
|
|
this._super(); |
|
|
this._super(); |
|
|
if (this.pos.config.balance_id) { |
|
|
|
|
|
|
|
|
if (this.pos.config.is_balance_free) { |
|
|
this.gui.set_startup_screen('presentation'); |
|
|
this.gui.set_startup_screen('presentation'); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
build_chrome: function() { |
|
|
build_chrome: function() { |
|
|
this._super(); |
|
|
this._super(); |
|
|
if (this.pos.config.balance_id) { |
|
|
|
|
|
|
|
|
if (this.pos.config.is_balance_free) { |
|
|
this.$('.pos-topheader').addClass('oe_hidden'); |
|
|
this.$('.pos-topheader').addClass('oe_hidden'); |
|
|
} |
|
|
} |
|
|
else { |
|
|
else { |
|
@ -974,7 +974,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
renderElement: function(){ |
|
|
renderElement: function(){ |
|
|
var self = this; |
|
|
var self = this; |
|
|
this._super(); |
|
|
this._super(); |
|
|
if (this.pos.config.balance_id) { |
|
|
|
|
|
|
|
|
if (this.pos.config.is_balance_free) { |
|
|
if (this.pos.get_order()) { |
|
|
if (this.pos.get_order()) { |
|
|
this.$el.removeClass('oe_invisible'); |
|
|
this.$el.removeClass('oe_invisible'); |
|
|
} else { |
|
|
} else { |
|
|