X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=addons%2Fpoint_of_sale%2Fstatic%2Fsrc%2Fjs%2Fpos.js;h=b47ca2ab4a29020be4442a535e239cd0282358b8;hb=b693864e0157acd4511c315af7d223d3071b7040;hp=57678d650317ae4f0a03395818ae44e0b5c2696e;hpb=c86f880aa0e69738fb6e78303594254a23b46e24;p=odoo%2Fodoo.git diff --git a/addons/point_of_sale/static/src/js/pos.js b/addons/point_of_sale/static/src/js/pos.js index 57678d6..b47ca2a 100644 --- a/addons/point_of_sale/static/src/js/pos.js +++ b/addons/point_of_sale/static/src/js/pos.js @@ -709,7 +709,7 @@ openerp.point_of_sale = function(db) { It should be possible to go back to any step as long as step 3 hasn't been completed. Modifying an order after validation shouldn't be allowed. */ - var StepsWidget = db.web.Widget.extend({ + var StepSwitcher = db.web.Widget.extend({ init: function(parent, options) { this._super(parent); this.shop = options.shop; @@ -1188,9 +1188,7 @@ openerp.point_of_sale = function(db) { shop: this.shop, }); this.receiptView.replace($('#receipt-screen')); - this.stepsView = new StepsWidget(null, {shop: this.shop}); - this.stepsView.$element = $('#steps'); - this.stepsView.start(); + this.stepSwitcher = new StepSwitcher(this, {shop: this.shop}); this.shop.bind('change:selectedOrder', this.changedSelectedOrder, this); this.changedSelectedOrder(); }, @@ -1326,8 +1324,6 @@ openerp.point_of_sale = function(db) { this.$element.find("#loggedas button").click(function() { self.try_close(); }); - - this.$element.find('#steps').buttonset(); pos.app = new App(self.$element); $('.oe_toggle_secondary_menu').hide();