[FIX] point_of_sale: works when used in embed mode

bzr revid: chs@openerp.com-20120224144939-550wsvj448fk3yfb
This commit is contained in:
Christophe Simonis 2012-02-24 15:49:39 +01:00
parent 769ea34281
commit f37ea622cb
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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,{