File: qweb-test-global.xml

package info (click to toggle)
oca-core 11.0.20180730-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 509,684 kB
  • sloc: xml: 258,806; python: 164,081; sql: 217; sh: 92; makefile: 16
file content (54 lines) | stat: -rw-r--r-- 1,704 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?xml version="1.0" encoding="utf-8"?>

<templates>
    <t t-name="_callee-asc"><Año t-att-falló="'agüero'" t-raw="0"/></t>
    <t t-name="_callee-uses-foo"><span t-esc="foo">foo default</span></t>
    <t t-name="_callee-asc-toto"><div t-raw="toto">toto default</div></t>

    <t t-name="caller">
        <t t-foreach="[4,5,6]" t-as="value">
            <span t-esc="value"/>
            <t t-call="_callee-asc">
                <t t-call="_callee-uses-foo">
                    <t t-set="foo" t-value="'aaa'"/>
                </t>
                <t t-call="_callee-uses-foo"/>
                <t t-set="foo" t-value="'bbb'"/>
                <t t-call="_callee-uses-foo"/>
            </t>
        </t>
        <t t-call="_callee-asc-toto"/>
        <t t-set="toto"><t t-set="truc" t-value="'bbb'"/><i t-att-notruc="not truc" t-att-truc="bool(truc)">i</i></t>
        <t t-call="_callee-asc-toto"/>
    </t>

    <result id="caller"><![CDATA[
        <span>4</span>
            <Año falló="agüero">
                <span>aaa</span>
                <span>foo default</span>
                
                <span>bbb</span>
            </Año>
        
            <span>5</span>
            <Año falló="agüero">
                <span>aaa</span>
                <span>foo default</span>
                
                <span>bbb</span>
            </Año>
        
            <span>6</span>
            <Año falló="agüero">
                <span>aaa</span>
                <span>foo default</span>
                
                <span>bbb</span>
            </Año>
        
        <div>toto default</div>
        
        <div><i truc="True">i</i></div>
    ]]></result>
</templates>