[FIX] hw_posbox_upgrade: posbox restart was not working
authorFrédéric van der Essen <fva@openerp.com>
Fri, 28 Mar 2014 14:43:35 +0000 (15:43 +0100)
committerFrédéric van der Essen <fva@openerp.com>
Fri, 28 Mar 2014 14:43:35 +0000 (15:43 +0100)
bzr revid: fva@openerp.com-20140328144335-zs5kdh7kxvliumyq

addons/hw_posbox_upgrade/controllers/main.py

index b741a7a..21245a5 100644 (file)
@@ -32,7 +32,7 @@ upgrade_template = """
                         $('#upgrade').html('Upgrade Successful<br \\>Click to Restart the PosBox');
                         $('#upgrade').off('click');
                         $('#upgrade').click(function(){
-                            $.ajax({ url:'hw_proxy/perform_restart' })
+                            $.ajax({ url:'/hw_proxy/perform_restart' })
                             $('#upgrade').text('Restarting');
                             $('#upgrade').off('click');
                             setTimeout(function(){