summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant/static/src/xml/multiprint.xml
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2017-08-22 17:20:15 +0200
committerChristophe Simonis <chs@odoo.com>2017-08-22 17:20:15 +0200
commitd5f2a38b50ceb2fb9f5dcecb5eeaad3188555705 (patch)
tree5ad6be44887a1980ca1703f3fd80c38c10ddf1e5 /addons/pos_restaurant/static/src/xml/multiprint.xml
parente38de9dfa4c09f861253cb85643a47153d448e3c (diff)
parent6956ad54de52055910539118a34355f818e57c4a (diff)
[MERGE] forward port branch saas-14 up to 6956ad54de5
Diffstat (limited to 'addons/pos_restaurant/static/src/xml/multiprint.xml')
-rw-r--r--addons/pos_restaurant/static/src/xml/multiprint.xml15
1 files changed, 13 insertions, 2 deletions
diff --git a/addons/pos_restaurant/static/src/xml/multiprint.xml b/addons/pos_restaurant/static/src/xml/multiprint.xml
index 4f3d0cf7379..282d07421c2 100644
--- a/addons/pos_restaurant/static/src/xml/multiprint.xml
+++ b/addons/pos_restaurant/static/src/xml/multiprint.xml
@@ -8,6 +8,15 @@
</span>
</t>
+ <t t-name="NameWrapped">
+ <t t-foreach="change.name_wrapped.slice(1)" t-as="wrapped_line">
+ <line>
+ <left></left>
+ <right><t t-esc="wrapped_line"/></right>
+ </line>
+ </t>
+ </t>
+
<t t-name="OrderChangeReceipt">
<receipt
align='center'
@@ -33,8 +42,9 @@
<t t-foreach="changes.cancelled" t-as="change">
<line>
<left><value><t t-esc="change.qty" /></value></left>
- <right><t t-esc="change.name" /></right>
+ <right><t t-esc="change.name_wrapped[0]" /></right>
</line>
+ <t t-call="NameWrapped"/>
<t t-if="change.note">
<line>
<left>NOTE</left>
@@ -55,8 +65,9 @@
<t t-foreach="changes.new" t-as="change">
<line>
<left><value><t t-esc="change.qty" /></value></left>
- <right><t t-esc="change.name" /></right>
+ <right><t t-esc="change.name_wrapped[0]" /></right>
</line>
+ <t t-call="NameWrapped"/>
<t t-if="change.note">
<line>
<left>NOTE</left>