Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
8780 Widoki

Dear community,

I want to modify the header and footer of web.external_layout_standard in my custom module. I've tried several tutorials but always the same error:

Can not separate file to save as attachment because the report's template does not contains the attributes 'data-oe-model' and 'data-oe-id' on the div with 'article' classname.

E.g.:

 <template id="my_layout_standard" inherit_id="web.external_layout_standard">

            <xpath expr="." position="replace">

                    <div t-attf-class="article" t-att-data-oe-model="o and o._name" t-att-data-oe-id="o and o.id" t-att-data-oe-lang="o and o.env.context.get('lang')">

                    <div class="pt-5"> 

                        <t t-call="web.address_layout"/>

                    </div>

                    <t t-raw="0"/>

                </div>

            </xpath>

</template>


How can i modify via XML module installation the header and footer of web.external_layout_standard.


It is possible via user interface but i would like to modify it via update/installation of the module.


Thank you in advance,

best reagards,

Markus


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lut 22
4624
0
lut 21
2030
0
maj 25
11
2
sty 25
2334
1
sty 25
571