mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[FIX] report_qweb_parameter: out and raw doesn't work with conditionals
This commit is contained in:
@@ -15,6 +15,11 @@
|
||||
t-esc="docs[0].street"
|
||||
t-if="docs[0].street"
|
||||
/>
|
||||
<li
|
||||
name="esc_conditional_length"
|
||||
t-length="3"
|
||||
t-esc="docs[0].name or docs[0].company_registry"
|
||||
/>
|
||||
<li
|
||||
name="esc_maxlength"
|
||||
t-maxlength="10"
|
||||
@@ -28,6 +33,11 @@
|
||||
t-out="docs[0].vat"
|
||||
t-if="docs[0].vat"
|
||||
/>
|
||||
<li
|
||||
name="raw_conditional_length"
|
||||
t-length="4"
|
||||
t-raw="docs[0].name or docs[0].company_registry"
|
||||
/>
|
||||
<li
|
||||
name="raw_maxlength"
|
||||
t-maxlength="10"
|
||||
@@ -35,14 +45,19 @@
|
||||
t-if="docs[0].company_registry"
|
||||
/>
|
||||
<li
|
||||
name="raw_length"
|
||||
name="out_length"
|
||||
t-minlength="10"
|
||||
t-length="10"
|
||||
t-out="docs[0].vat"
|
||||
t-if="docs[0].vat"
|
||||
/>
|
||||
<li
|
||||
name="raw_maxlength"
|
||||
name="out_conditional_length"
|
||||
t-length="5"
|
||||
t-out="docs[0].name or docs[0].company_registry"
|
||||
/>
|
||||
<li
|
||||
name="out_maxlength"
|
||||
t-maxlength="10"
|
||||
t-out="docs[0].company_registry"
|
||||
t-if="docs[0].company_registry"
|
||||
|
||||
Reference in New Issue
Block a user