[IMP] pos_restaurant: include the table name in the order selector
This commit is contained in:
committed by
Frédéric van der Essen
parent
db6b4b4f52
commit
09c1644165
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user