blob: 261b892beb487bd3c6e3933fc6a50d8114a2e220 (
plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
|
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="external_layout_standard" inherit_id="web.external_layout_standard" >
<!-- support for custom header -->
<div t-attf-class="header o_company_#{company.id}_layout" position="attributes">
<attribute name="t-if">not custom_header</attribute>
</div>
<div t-attf-class="header o_company_#{company.id}_layout" position="after">
<div t-attf-class="header o_company_#{company.id}_layout" t-if="custom_header">
<t t-if="custom_header" t-call="#{custom_header}"/>
</div>
</div>
<!-- support for custom footer -->
<div t-attf-class="footer o_standard_footer o_company_#{company.id}_layout" position="attributes">
<attribute name="t-if">not custom_footer</attribute>
</div>
<div t-attf-class="footer o_standard_footer o_company_#{company.id}_layout" position="after">
<div t-attf-class="footer o_standard_footer o_company_#{company.id}_layout" t-if="custom_footer">
<t t-if="custom_footer" t-raw="custom_footer"/>
</div>
</div>
</template>
<template id="external_layout_clean" inherit_id="web.external_layout_clean" >
<!-- support for custom header -->
<div t-attf-class="header o_company_#{company.id}_layout" position="attributes">
<attribute name="t-if">not custom_header</attribute>
</div>
<div t-attf-class="header o_company_#{company.id}_layout" position="after">
<div t-attf-class="header o_company_#{company.id}_layout" t-if="custom_header">
<div class="o_clean_header">
<t t-if="custom_header" t-call="#{custom_header}"/>
</div>
</div>
</div>
<!-- support for custom footer -->
<div t-attf-class="footer o_clean_footer o_company_#{company.id}_layout" position="attributes">
<attribute name="t-if">not custom_footer</attribute>
</div>
<div t-attf-class="footer o_clean_footer o_company_#{company.id}_layout" position="after">
<div t-attf-class="footer o_clean_footer o_company_#{company.id}_layout" t-if="custom_footer">
<t t-if="custom_footer" t-raw="custom_footer"/>
</div>
</div>
</template>
<template id="external_layout_boxed" inherit_id="web.external_layout_boxed" >
<!-- support for custom header -->
<div t-attf-class="header o_company_#{company.id}_layout" position="attributes">
<attribute name="t-if">not custom_header</attribute>
</div>
<div t-attf-class="header o_company_#{company.id}_layout" position="after">
<div t-attf-class="header o_company_#{company.id}_layout" t-if="custom_header">
<div class="o_boxed_header">
<t t-if="custom_header" t-call="#{custom_header}"/>
</div>
</div>
</div>
<!-- support for custom footer -->
<div t-attf-class="footer o_boxed_footer o_company_#{company.id}_layout" position="attributes">
<attribute name="t-if">not custom_footer</attribute>
</div>
<div t-attf-class="footer o_boxed_footer o_company_#{company.id}_layout" position="after">
<div t-attf-class="footer o_boxed_footer o_company_#{company.id}_layout" t-if="custom_footer">
<t t-if="custom_footer" t-raw="custom_footer"/>
</div>
</div>
</template>
<template id="external_layout_background" inherit_id="web.external_layout_background" >
<!-- support for custom header -->
<div t-attf-class="o_company_#{company.id}_layout header" position="attributes">
<attribute name="t-if">not custom_header</attribute>
</div>
<div t-attf-class="o_company_#{company.id}_layout header" position="after">
<div t-attf-class="o_company_#{company.id}_layout header" t-if="custom_header">
<div class="o_background_header">
<t t-if="custom_header" t-call="#{custom_header}"/>
</div>
</div>
</div>
<!-- support for custom footer -->
<div t-attf-class="o_company_#{company.id}_layout footer o_background_footer" position="attributes">
<attribute name="t-if">not custom_footer</attribute>
</div>
<div t-attf-class="o_company_#{company.id}_layout footer o_background_footer" position="after">
<div t-attf-class="o_company_#{company.id}_layout footer o_background_footer" t-if="custom_footer">
<t t-if="custom_footer" t-raw="custom_footer"/>
</div>
</div>
</template>
</odoo>
|