| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
|
| 4 |
<template id="external_layout_standard" inherit_id="web.external_layout_standard" > |
| 5 |
<!-- support for custom header --> |
| 6 |
<xpath expr="//img/../.." position="attributes"> |
| 7 |
<attribute name="t-if">not custom_header</attribute> |
| 8 |
</xpath> |
| 9 |
<xpath expr="//img/../.." position="after"> |
| 10 |
<div t-attf-class="header o_company_#{company.id}_layout" |
| 11 |
t-if="custom_header and company._localization_use_documents()"> |
| 12 |
<t t-call="#{custom_header}"/> |
| 13 |
</div> |
| 14 |
</xpath> |
| 15 |
|
| 16 |
<!-- support for custom footer --> |
| 17 |
<div class="o_footer_content d-flex border-top pt-2" position="attributes"> |
| 18 |
<attribute name="t-if">not custom_footer</attribute> |
| 19 |
</div> |
| 20 |
|
| 21 |
<div class="o_footer_content d-flex border-top pt-2" position="after"> |
| 22 |
<div class="o_footer_content border-top pt-2" |
| 23 |
t-if="custom_footer and company._localization_use_documents()"> |
| 24 |
<t t-out="custom_footer"/> |
| 25 |
</div> |
| 26 |
</div> |
| 27 |
</template> |
| 28 |
|
| 29 |
<template id="external_layout_bold" inherit_id="web.external_layout_bold" > |
| 30 |
<!-- support for custom header --> |
| 31 |
<xpath expr="//img/../.." position="attributes"> |
| 32 |
<attribute name="t-if">not custom_header</attribute> |
| 33 |
</xpath> |
| 34 |
<xpath expr="//img/../.." position="after"> |
| 35 |
<div t-if="custom_header and company._localization_use_documents()"> |
| 36 |
<t t-call="#{custom_header}"/> |
| 37 |
</div> |
| 38 |
</xpath> |
| 39 |
|
| 40 |
<!-- support for custom footer --> |
| 41 |
<xpath expr="//div[hasclass('o_footer_content')]" position="attributes"> |
| 42 |
<attribute name="t-if">not custom_footer</attribute> |
| 43 |
</xpath> |
| 44 |
<xpath expr="//div[hasclass('o_footer_content')]" position="after"> |
| 45 |
<div class="o_footer_content border-top pt-2" t-attf-class="{{'d-flex' if is_html_empty(company.report_header) else 'row' }}" |
| 46 |
t-if="custom_footer and company._localization_use_documents()"> |
| 47 |
<t t-out="custom_footer"/> |
| 48 |
</div> |
| 49 |
</xpath> |
| 50 |
</template> |
| 51 |
|
| 52 |
<template id="external_layout_boxed" inherit_id="web.external_layout_boxed" > |
| 53 |
<!-- support for custom header --> |
| 54 |
<xpath expr="//img/../.." position="attributes"> |
| 55 |
<attribute name="t-if">not custom_header</attribute> |
| 56 |
</xpath> |
| 57 |
<xpath expr="//img/../.." position="after"> |
| 58 |
<div t-if="custom_header and company._localization_use_documents()"> |
| 59 |
<t t-call="#{custom_header}"/> |
| 60 |
</div> |
| 61 |
</xpath> |
| 62 |
|
| 63 |
<!-- support for custom footer --> |
| 64 |
<xpath expr="//div[hasclass('o_footer_content')]" position="attributes"> |
| 65 |
<attribute name="t-if">not custom_footer</attribute> |
| 66 |
</xpath> |
| 67 |
<xpath expr="//div[hasclass('o_footer_content')]" position="after"> |
| 68 |
<div class="o_footer_content border-top pt-2" t-attf-class="{{'d-flex' if is_html_empty(company.report_header) else 'row' }}" |
| 69 |
t-if="custom_footer and company._localization_use_documents()"> |
| 70 |
<t t-out="custom_footer"/> |
| 71 |
</div> |
| 72 |
</xpath> |
| 73 |
</template> |
| 74 |
|
| 75 |
<template id="external_layout_striped" inherit_id="web.external_layout_striped" > |
| 76 |
<!-- support for custom header --> |
| 77 |
<xpath expr="//img/../.." position="attributes"> |
| 78 |
<attribute name="t-if">not custom_header</attribute> |
| 79 |
</xpath> |
| 80 |
<xpath expr="//img/../.." position="after"> |
| 81 |
<div t-if="custom_header and company._localization_use_documents()"> |
| 82 |
<t t-call="#{custom_header}"/> |
| 83 |
</div> |
| 84 |
</xpath> |
| 85 |
|
| 86 |
<!-- support for custom footer --> |
| 87 |
<div class="o_footer_content border-top pt-2 text-center" position="attributes"> |
| 88 |
<attribute name="t-if">not custom_footer</attribute> |
| 89 |
</div> |
| 90 |
<div class="o_footer_content border-top pt-2 text-center" position="after"> |
| 91 |
<div class="o_footer_content border-top pt-2 text-center" |
| 92 |
t-if="custom_footer and company._localization_use_documents()"> |
| 93 |
<t t-out="custom_footer"/> |
| 94 |
</div> |
| 95 |
</div> |
| 96 |
</template> |
| 97 |
|
| 98 |
<template id="external_layout_bubble" inherit_id="web.external_layout_bubble"> |
| 99 |
<!-- support for custom header --> |
| 100 |
<xpath expr="//img/../.." position="attributes"> |
| 101 |
<attribute name="t-if">not custom_header</attribute> |
| 102 |
</xpath> |
| 103 |
<xpath expr="//img/../.." position="after"> |
| 104 |
<div t-if="custom_header and company._localization_use_documents()"> |
| 105 |
<t t-call="#{custom_header}"/> |
| 106 |
</div> |
| 107 |
</xpath> |
| 108 |
|
| 109 |
<!-- support for custom footer --> |
| 110 |
<div t-attf-class="o_footer_content {{report_type != 'pdf' and 'position-absolute end-0 start-0 bottom-0 mx-5'}} pt-4 text-center" position="attributes"> |
| 111 |
<attribute name="t-if">not custom_footer</attribute> |
| 112 |
</div> |
| 113 |
<div t-attf-class="o_footer_content {{report_type != 'pdf' and 'position-absolute end-0 start-0 bottom-0 mx-5'}} pt-4 text-center" position="after"> |
| 114 |
<div t-attf-class="o_footer_content {{report_type != 'pdf' and 'position-absolute end-0 start-0 bottom-0 mx-5'}} pt-4 text-center" |
| 115 |
t-if="custom_footer and company._localization_use_documents()"> |
| 116 |
<t t-out="custom_footer"/> |
| 117 |
</div> |
| 118 |
</div> |
| 119 |
</template> |
| 120 |
|
| 121 |
<template id="external_layout_wave" inherit_id="web.external_layout_wave"> |
| 122 |
<!-- support for custom header --> |
| 123 |
<xpath expr="//img/../.." position="attributes"> |
| 124 |
<attribute name="t-if">not custom_header</attribute> |
| 125 |
</xpath> |
| 126 |
<xpath expr="//img/../.." position="after"> |
| 127 |
<div t-if="custom_header and company._localization_use_documents()"> |
| 128 |
<t t-call="#{custom_header}"/> |
| 129 |
</div> |
| 130 |
</xpath> |
| 131 |
|
| 132 |
<!-- support for custom footer --> |
| 133 |
<xpath expr="//div[contains(@t-attf-class,'o_footer_content')]" position="attributes"> |
| 134 |
<attribute name="t-if">not custom_footer</attribute> |
| 135 |
</xpath> |
| 136 |
<xpath expr="//div[contains(@t-attf-class,'o_footer_content')]" position="after"> |
| 137 |
<div t-attf-class="o_footer_content {{report_type != 'pdf' and 'mx-5'}} pt-5 text-center" |
| 138 |
t-if="custom_footer and company._localization_use_documents()"> |
| 139 |
<t t-out="custom_footer"/> |
| 140 |
</div> |
| 141 |
</xpath> |
| 142 |
</template> |
| 143 |
|
| 144 |
<template id="external_layout_folder" inherit_id="web.external_layout_folder"> |
| 145 |
<!-- support for custom header --> |
| 146 |
<xpath expr="//img/../.." position="attributes"> |
| 147 |
<attribute name="t-if">not custom_header</attribute> |
| 148 |
</xpath> |
| 149 |
<xpath expr="//img/../.." position="after"> |
| 150 |
<div t-if="custom_header and company._localization_use_documents()"> |
| 151 |
<t t-call="#{custom_header}"/> |
| 152 |
</div> |
| 153 |
</xpath> |
| 154 |
|
| 155 |
<!-- support for custom footer --> |
| 156 |
<div class="o_footer_content d-flex border-top pt-2" position="attributes"> |
| 157 |
<attribute name="t-if">not custom_footer</attribute> |
| 158 |
</div> |
| 159 |
<div class="o_footer_content d-flex border-top pt-2" position="after"> |
| 160 |
<div class="o_footer_content border-top pt-2" |
| 161 |
t-if="custom_footer and company._localization_use_documents()"> |
| 162 |
<t t-out="custom_footer"/> |
| 163 |
</div> |
| 164 |
</div> |
| 165 |
</template> |
| 166 |
</odoo> |