Vaibhav (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-905210-vda into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #905210 in OpenERP Web: "[POS] Product / Payment / Receipt button not 
working"
  https://bugs.launchpad.net/openerp-web/+bug/905210

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-905210-vda/+merge/86216

Bind Step event.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-905210-vda/+merge/86216
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-905210-vda.
=== modified file 'point_of_sale/static/src/js/pos.js'
--- point_of_sale/static/src/js/pos.js	2011-12-14 17:13:22 +0000
+++ point_of_sale/static/src/js/pos.js	2011-12-19 10:54:08 +0000
@@ -1222,7 +1222,13 @@
                 });
     
                 this.$element.find('#steps').buttonset();
-
+                
+                $('[role=button]',this.$element.find('#steps')).click(function() {
+                    var step = $(this).prev().attr('data-step');
+                    pos.app.shop.get('selectedOrder').set({'step': step});
+                    pos.app.shopView.stepsView.change_step();
+                });
+                
                 pos.app = new App(self.$element);
                 $('.oe_toggle_secondary_menu').hide();
                 $('.oe_footer').hide();

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to