|
|
@ -30,7 +30,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
|
|
|
|
|
show: function(){ |
|
|
|
var self = this; |
|
|
|
if (this.pos.config.balance_id) { |
|
|
|
if (this.pos.config.is_balance_free) { |
|
|
|
var queue = this.pos.proxy_queue; |
|
|
|
|
|
|
|
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', |
|
|
|
'widget': BalanceScaleScreenWidget, |
|
|
|
'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', |
|
|
|
'widget': ProductBalanceScreenWidget, |
|
|
|
'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', |
|
|
|
'widget': BalanceContainerScaleScreenWidget, |
|
|
|
'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', |
|
|
|
'widget': PresentationScreenWidget, |
|
|
|
'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', |
|
|
|
'widget': ConfirmationScreen, |
|
|
|
'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({ |
|
|
|
build_widgets: function(){ |
|
|
|
this._super(); |
|
|
|
if (this.pos.config.balance_id) { |
|
|
|
if (this.pos.config.is_balance_free) { |
|
|
|
this.gui.set_startup_screen('presentation'); |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
build_chrome: function() { |
|
|
|
this._super(); |
|
|
|
if (this.pos.config.balance_id) { |
|
|
|
if (this.pos.config.is_balance_free) { |
|
|
|
this.$('.pos-topheader').addClass('oe_hidden'); |
|
|
|
} |
|
|
|
else { |
|
|
@ -974,7 +974,7 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
|
renderElement: function(){ |
|
|
|
var self = this; |
|
|
|
this._super(); |
|
|
|
if (this.pos.config.balance_id) { |
|
|
|
if (this.pos.config.is_balance_free) { |
|
|
|
if (this.pos.get_order()) { |
|
|
|
this.$el.removeClass('oe_invisible'); |
|
|
|
} else { |
|
|
|