summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant/static/src/xml
diff options
context:
space:
mode:
Diffstat (limited to 'addons/pos_restaurant/static/src/xml')
-rw-r--r--addons/pos_restaurant/static/src/xml/floors.xml15
1 files changed, 14 insertions, 1 deletions
diff --git a/addons/pos_restaurant/static/src/xml/floors.xml b/addons/pos_restaurant/static/src/xml/floors.xml
index 9179a742636..b3019a915d4 100644
--- a/addons/pos_restaurant/static/src/xml/floors.xml
+++ b/addons/pos_restaurant/static/src/xml/floors.xml
@@ -6,7 +6,7 @@
<t t-if='receipt.table'>
at table <t t-esc='receipt.table' />
</t>
- <t t-if='receipt.customer_count'>
+ <t t-if='receipt.table &amp;&amp; receipt.customer_count'>
<div>Guests: <t t-esc='receipt.customer_count' /></div>
</t>
</t>
@@ -23,6 +23,19 @@
</t>
</t>
+ <t t-extend="OrderSelectorWidget">
+ <t t-jquery=".order-sequence" t-operation="replace">
+ <span class="order-sequence">
+ <t t-if="order.server_id &amp;&amp; widget.pos.pos_session.login_number != order.uid.split('-')[1]">
+ <t t-esc="order.uid.substring(order.uid.indexOf('-') +1)"/>
+ </t>
+ <t t-else="">
+ <t t-esc="order.sequence_number"/>
+ </t>
+ </span>
+ </t>
+ </t>
+
<t t-name="TableGuestsButton">
<div class='control-button'>
<span class='control-button-number'>