Initial commit: Odoo 18.0-20251222 extra-addons
This commit is contained in:
67
report_qweb_parameter/demo/test_report_field_length.xml
Normal file
67
report_qweb_parameter/demo/test_report_field_length.xml
Normal file
@@ -0,0 +1,67 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
<record id="test_report_length_report_id" model="ir.actions.report">
|
||||
<field name="name">Length Report</field>
|
||||
<field name="model">res.company</field>
|
||||
<field name="report_type">qweb-html</field>
|
||||
<field name="report_name">report_qweb_parameter.test_report_length</field>
|
||||
</record>
|
||||
<template id="test_report_length">
|
||||
<data>
|
||||
<li
|
||||
name="esc_length"
|
||||
t-minlength="10"
|
||||
t-length="10"
|
||||
t-out="docs[0].street"
|
||||
t-if="docs[0].street"
|
||||
/>
|
||||
<li
|
||||
name="esc_conditional_length"
|
||||
t-length="3"
|
||||
t-out="docs[0].name or docs[0].company_registry"
|
||||
/>
|
||||
<li
|
||||
name="esc_maxlength"
|
||||
t-maxlength="10"
|
||||
t-out="docs[0].website"
|
||||
t-if="docs[0].website"
|
||||
/>
|
||||
<li
|
||||
name="raw_length"
|
||||
t-minlength="10"
|
||||
t-length="10"
|
||||
t-out="docs[0].vat"
|
||||
t-if="docs[0].vat"
|
||||
/>
|
||||
<li
|
||||
name="raw_conditional_length"
|
||||
t-length="4"
|
||||
t-out="docs[0].name or docs[0].company_registry"
|
||||
/>
|
||||
<li
|
||||
name="raw_maxlength"
|
||||
t-maxlength="10"
|
||||
t-out="docs[0].company_registry"
|
||||
t-if="docs[0].company_registry"
|
||||
/>
|
||||
<li
|
||||
name="out_length"
|
||||
t-minlength="10"
|
||||
t-length="10"
|
||||
t-out="docs[0].vat"
|
||||
t-if="docs[0].vat"
|
||||
/>
|
||||
<li
|
||||
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"
|
||||
/>
|
||||
</data>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user