diff --git a/__manifest__.py b/__manifest__.py index fe3ef56d5ea53cd126cb159303503c3a8f04697a..1e28b877474b293377a813f451c49ca10927a4cd 100644 --- a/__manifest__.py +++ b/__manifest__.py @@ -1,7 +1,7 @@ { "name": "VRACOOP - POS Balance Container QRCode", "summary": "VRACOOP - POS Balance Container QRCode", - "version": "12.0.1.5.7", + "version": "12.0.1.6.0", "development_status": "Beta", "author": "Le Filament", "maintainers": ["remi-filament"], diff --git a/static/src/js/container.js b/static/src/js/container.js index 4dc61ae4368a7e8234935723fa26c55f19a394c0..8dc3ceec0cf98179136d16a9b15ae0a2891c07d5 100644 --- a/static/src/js/container.js +++ b/static/src/js/container.js @@ -54,6 +54,7 @@ odoo.define('vracoop_pos_container_qrcode.container_print_qr', function (require else { count_it = 0; if (self.weight > 0){ + self.create_container(); self.print(); self.gui.show_screen('confirmation'); } @@ -90,6 +91,7 @@ odoo.define('vracoop_pos_container_qrcode.container_print_qr', function (require ///////////////////////////// handle_auto_print: function() { + this.create_container(); this.print(); this.click_next(); }, @@ -149,6 +151,7 @@ odoo.define('vracoop_pos_container_qrcode.container_print_qr', function (require this._super(); this.$('.next,.print-qrcode').click(function(){ + self.create_container(); self.print(); }); }, @@ -204,11 +207,21 @@ odoo.define('vracoop_pos_container_qrcode.container_print_qr', function (require render_receipt: function() { this.$('.pos-qr-container').html(QWeb.render('PosQR', this.get_receipt_render_env())); }, + create_container: function(){ + var self = this; + var fields = {}; + + fields['weight'] = this.weight; + + fields.barcode = false; + fields.name = _t('Container'); + + this.pos.push_container(fields); + }, ///////////////////////////// // End Function to Print // ///////////////////////////// - close: function(){ this._super(); if (this.pos.config.iface_vkeyboard && this.chrome.widget.keyboard) {