Skip to Content
Menu
This question has been flagged
1 Odpoveď
8784 Zobrazenia

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


Avatar
Zrušiť
Related Posts Replies Zobrazenia Aktivita
0
feb 22
4626
0
feb 21
2030
0
máj 25
11
2
jan 25
2346
1
jan 25
575