|
|
@ -1020,13 +1020,25 @@ odoo.define('vracoop_pos_free_balance_v2.container_balance', function (require) |
|
|
|
|
|
|
|
build_chrome: function() { |
|
|
|
this._super(); |
|
|
|
var self = this; |
|
|
|
if (this.pos.config.is_balance_free) { |
|
|
|
this.$('.pos-topheader').addClass('oe_hidden'); |
|
|
|
this.$('.close-button-bls').click(function(){ |
|
|
|
self.click_close(); |
|
|
|
}); |
|
|
|
} |
|
|
|
else { |
|
|
|
this.$('.pos-topheader-title').addClass('oe_hidden'); |
|
|
|
} |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
click_close: function() { |
|
|
|
var self = this; |
|
|
|
clearTimeout(this.confirmed); |
|
|
|
this.gui.close(); |
|
|
|
}, |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
gui.Gui.include({ |
|
|
|