[IMP] pos_restaurant: include the table name in the order selector

This commit is contained in:
Frederic van der Essen
2014-11-26 11:26:57 +01:00
committed by Frédéric van der Essen
parent db6b4b4f52
commit 09c1644165
3 changed files with 7 additions and 1 deletions
@@ -231,6 +231,9 @@
padding-left: 16px;
padding-right: 16px;
}
.pos .order-button.floor-button .table-name {
font-weight: normal;
}
.pos .order-button.floor-button .fa{
font-size: 24px;
}
@@ -609,7 +609,7 @@ function openerp_restaurant_floors(instance,module){
if (this.pos.config.iface_floorplan) {
if (this.pos.get_order()) {
if (this.pos.table && this.pos.table.floor) {
this.$('.orders').prepend(QWeb.render('BackToFloorButton',{floor:this.pos.table.floor}));
this.$('.orders').prepend(QWeb.render('BackToFloorButton',{table: this.pos.table, floor:this.pos.table.floor}));
this.$('.floor-button').click(function(){
self.floor_button_click_handler();
});
@@ -33,6 +33,9 @@
<span class="order-button floor-button">
<i class='fa fa-angle-double-left'/>
<t t-esc="floor.name"/>
<span class='table-name'>
( <t t-esc="table.name" /> )
</span>
</span>
</t>