summaryrefslogtreecommitdiff
path: root/addons/pos_restaurant/static/src/xml/multiprint.xml
diff options
context:
space:
mode:
authorJoren Van Onder <jov@odoo.com>2017-08-08 14:10:22 -0700
committerJoren Van Onder <jov@odoo.com>2017-08-18 13:56:39 -0700
commit89cade3bffc82159012b9be1e53f7cfd19a1104e (patch)
tree4d60322bf8603e5740f71984d2e979d95b58de4d /addons/pos_restaurant/static/src/xml/multiprint.xml
parent110bf158f68cc3066dc8cd1f6e47b1dd04ae7fac (diff)
[FIX] pos_restaurant: wrap product names on OrderChangeReceipt
Reuse generate_wrapped_product_name() which was implemented for regular POS receipts at 62a8def91889bbe8f2207bb4c0067f2274ae93e6. Fixes #18688
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>