From f37ea622cb5c296dab3ca3d173f8149ea6c949e7 Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Fri, 24 Feb 2012 15:49:39 +0100 Subject: [PATCH] [FIX] point_of_sale: works when used in embed mode bzr revid: chs@openerp.com-20120224144939-550wsvj448fk3yfb --- addons/point_of_sale/__openerp__.py | 3 ++- addons/point_of_sale/static/src/js/pos.js | 1 - 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/point_of_sale/__openerp__.py b/addons/point_of_sale/__openerp__.py index 6de408b956e..911ccf24bb5 100644 --- a/addons/point_of_sale/__openerp__.py +++ b/addons/point_of_sale/__openerp__.py @@ -83,6 +83,7 @@ Main features : 'certificate' : '001156338024966477869', # Web client 'js': ['static/lib/backbone/backbone-0.5.3.js', 'static/src/js/pos.js'], - 'css': ['static/src/css/pos.css'] + 'css': ['static/src/css/pos.css'], + 'qweb': ['static/src/xml/pos.xml'], } # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/addons/point_of_sale/static/src/js/pos.js b/addons/point_of_sale/static/src/js/pos.js index 4c2c0fec15c..359173e2261 100644 --- a/addons/point_of_sale/static/src/js/pos.js +++ b/addons/point_of_sale/static/src/js/pos.js @@ -19,7 +19,6 @@ openerp.point_of_sale = function(db) { }; var QWeb = db.web.qweb; - QWeb.add_template("/point_of_sale/static/src/xml/pos.xml"); var qweb_template = function(template) { return function(ctx) { return QWeb.render(template, _.extend({}, ctx,{