[ADD] POS direct integration in OpenERP web client
bzr revid: xmo@openerp.com-20111018145944-f5lvmywebzox9jsu
This commit is contained in:
parent
ea3fd05d04
commit
4693f2ee6b
|
@ -22,7 +22,7 @@
|
||||||
|
|
||||||
{
|
{
|
||||||
'name': 'Point Of Sale',
|
'name': 'Point Of Sale',
|
||||||
'version': '1.0',
|
'version': '1.0.1',
|
||||||
'category': 'Point Of Sale',
|
'category': 'Point Of Sale',
|
||||||
'description': """
|
'description': """
|
||||||
This module provides a quick and easy sale process.
|
This module provides a quick and easy sale process.
|
||||||
|
|
|
@ -6,7 +6,9 @@
|
||||||
font-family: "Lucida Grande", Helvetica, Verdana, Arial;
|
font-family: "Lucida Grande", Helvetica, Verdana, Arial;
|
||||||
color: #555555;
|
color: #555555;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
position: relative;
|
position: absolute;
|
||||||
|
left: 0;
|
||||||
|
top: 0;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1183,10 +1183,15 @@ openerp.point_of_sale = function(db) {
|
||||||
};
|
};
|
||||||
return App;
|
return App;
|
||||||
})();
|
})();
|
||||||
|
|
||||||
|
db.web.client_actions.add('pos.ui', 'db.point_of_sale.PointOfSale');
|
||||||
db.point_of_sale.PointOfSale = db.web.Widget.extend({
|
db.point_of_sale.PointOfSale = db.web.Widget.extend({
|
||||||
template: "PointOfSale",
|
template: "PointOfSale",
|
||||||
start: function() {
|
start: function() {
|
||||||
|
// FIXME: absolutely horrible hack to avoid conflict
|
||||||
|
// between backbone's history and al's action
|
||||||
|
// thingie
|
||||||
|
window.location.hash = '';
|
||||||
var self = this;
|
var self = this;
|
||||||
|
|
||||||
if (pos)
|
if (pos)
|
||||||
|
|
Loading…
Reference in New Issue