diff --git a/pos_multi_variant/__manifest__.py b/pos_multi_variant/__manifest__.py index a186aa61f..2d464f62e 100644 --- a/pos_multi_variant/__manifest__.py +++ b/pos_multi_variant/__manifest__.py @@ -21,7 +21,7 @@ ############################################################################# { 'name': "POS Product Multi variant", - 'version': '12.0.1.0.0', + 'version': '12.0.1.0.1', 'summary': """Product with multi-variants""", 'description': """Configure products having variants in POS""", 'author': 'Cybrosys Techno Solutions', diff --git a/pos_multi_variant/doc/RELEASE_NOTES.md b/pos_multi_variant/doc/RELEASE_NOTES.md index 1ee028af4..535f1a5ae 100755 --- a/pos_multi_variant/doc/RELEASE_NOTES.md +++ b/pos_multi_variant/doc/RELEASE_NOTES.md @@ -4,3 +4,8 @@ #### Version 12.0.1.0.0 ##### ADD - Initial commit for pos_multi_variant + +#### 20.09.2019 +#### Version 12.0.1.0.1 +##### FIX +- Bug Fixed. diff --git a/pos_multi_variant/static/src/js/ProductPopup.js b/pos_multi_variant/static/src/js/ProductPopup.js index 3cf03842a..4627b6e83 100644 --- a/pos_multi_variant/static/src/js/ProductPopup.js +++ b/pos_multi_variant/static/src/js/ProductPopup.js @@ -50,7 +50,7 @@ odoo.define('pos_multi_variant.ProductPopup', function (require) }); var ProductPopUp = PopupWidget.extend - ({ template: 'ProductPopUp', + ({ template: 'ProductPopUp', init: function(parent, options) { this._super(parent, options); @@ -59,8 +59,7 @@ odoo.define('pos_multi_variant.ProductPopup', function (require) }, show: function(options) - { var self =this; - this._super(options); + { this._super(options); this.render_list(options); }, @@ -78,7 +77,7 @@ odoo.define('pos_multi_variant.ProductPopup', function (require) var category = $(self).find('.action').data('category'); $('.product-img').find('.variant-selected').each(function () - { if($(this).data('category') == category) // if so + { if($(this).data('category') == category) { $(this).text("").removeClass('variant-selected'); $(self).find('.action').text("Selected").addClass('variant-selected'); } @@ -92,7 +91,7 @@ odoo.define('pos_multi_variant.ProductPopup', function (require) render_list:function(options) { this.list = options.list - this.image_url = options.image_url + this.image_url = options.image_url this.pos_reference = options.data this.variant_values = options.values this.self = options.self @@ -106,6 +105,9 @@ odoo.define('pos_multi_variant.ProductPopup', function (require) { if(this.list[i].pos_active == false) { NotActive += 1 } + if(this.list.length == NotActive) + { $("#notify").append(ActiveError); + } if(this.list[i].pos_active == true) { if (!pushed.includes(this.list[i].attribute[0])) { var temp = {}; @@ -115,9 +117,6 @@ odoo.define('pos_multi_variant.ProductPopup', function (require) AttributeNumbers.push(temp) } } - if(this.list.length == NotActive) - { $("#notify").append(ActiveError); - } } var tag = "