[IMP] pos_restaurant: add table / floor info to kitchen receipts
This commit is contained in:
committed by
Frédéric van der Essen
parent
d44080bd02
commit
07c07b2a34
@@ -588,7 +588,13 @@ function openerp_restaurant_floors(instance,module){
|
||||
initialize: function(attr) {
|
||||
_super_order.initialize.call(this,attr);
|
||||
this.table = this.pos.table;
|
||||
}
|
||||
},
|
||||
export_as_JSON: function() {
|
||||
var json = _super_order.export_as_JSON.apply(this,arguments);
|
||||
json.table = this.table.name;
|
||||
json.floor = this.table ? this.table.floor.name : false;
|
||||
return json;
|
||||
},
|
||||
});
|
||||
|
||||
// We need to modify the OrderSelector to hide itself when we're on
|
||||
|
||||
@@ -148,7 +148,8 @@ function openerp_restaurant_multiprint(instance,module){
|
||||
return {
|
||||
'new': add,
|
||||
'cancelled': rem,
|
||||
'table': json.table || 'unknown table',
|
||||
'table': json.table || false,
|
||||
'floor': json.floor || false,
|
||||
'name': json.name || 'unknown order',
|
||||
};
|
||||
|
||||
|
||||
@@ -19,6 +19,12 @@
|
||||
value-autoint='on'
|
||||
>
|
||||
<div><t t-esc="changes.name" /></div>
|
||||
<t t-if="changes.floor || changes.table">
|
||||
<br />
|
||||
<div><span><t t-esc="changes.floor" /></span> / <span bold='on'><t t-esc="changes.table"/></span></div>
|
||||
</t>
|
||||
<t t-if="changes.table">
|
||||
</t>
|
||||
<br />
|
||||
<br />
|
||||
<t t-if="changes.cancelled.length > 0">
|
||||
|
||||
Reference in New Issue
Block a user