[ADD] POS direct integration in OpenERP web client

bzr revid: xmo@openerp.com-20111018145944-f5lvmywebzox9jsu
This commit is contained in:
Xavier Morel 2011-10-18 16:59:44 +02:00
parent ea3fd05d04
commit 4693f2ee6b
3 changed files with 10 additions and 3 deletions

View File

@ -22,7 +22,7 @@
{
'name': 'Point Of Sale',
'version': '1.0',
'version': '1.0.1',
'category': 'Point Of Sale',
'description': """
This module provides a quick and easy sale process.

View File

@ -6,7 +6,9 @@
font-family: "Lucida Grande", Helvetica, Verdana, Arial;
color: #555555;
font-size: 12px;
position: relative;
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
}

View File

@ -1183,10 +1183,15 @@ openerp.point_of_sale = function(db) {
};
return App;
})();
db.web.client_actions.add('pos.ui', 'db.point_of_sale.PointOfSale');
db.point_of_sale.PointOfSale = db.web.Widget.extend({
template: "PointOfSale",
start: function() {
// FIXME: absolutely horrible hack to avoid conflict
// between backbone's history and al's action
// thingie
window.location.hash = '';
var self = this;
if (pos)