summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant/static/src
diff options
context:
space:
mode:
authorPierre Masereel <pim@odoo.com>2019-08-27 09:15:31 +0000
committerPierre Masereel <pim@odoo.com>2019-08-27 09:45:04 +0000
commit73d877eef248d1ec4e22a03e966f0d8b91012389 (patch)
tree673ec10a47ef690f1ee543560d34becdac9fd979 /addons/pos_restaurant/static/src
parente8d52e0025347e3c4b921211f7f5a0aa380416a5 (diff)
[FIX] point_of_sale, pos_restaurant: order sequence
WHen you are creating a draft order, the sequence is not saved on the server, and when we load the orders from the server the session id is not correct too. This leads to having inconsistant sequence numbers in the POS, almost when we are synchronizing orders through the pos restaurant. We now show the orders sequence number prefixed by login number when the order is synchronized and don't have the same login number as current. TASK-ID: 2057436 closes odoo/odoo#36032 Signed-off-by: pimodoo <pimodoo@users.noreply.github.com>
Diffstat (limited to 'addons/pos_restaurant/static/src')
-rw-r--r--addons/pos_restaurant/static/src/xml/floors.xml13
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/pos_restaurant/static/src/xml/floors.xml b/addons/pos_restaurant/static/src/xml/floors.xml
index 677092ca42e..b3019a915d4 100644
--- a/addons/pos_restaurant/static/src/xml/floors.xml
+++ b/addons/pos_restaurant/static/src/xml/floors.xml
@@ -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'>