跳至內容
選單
此問題已被標幟
2738 瀏覽次數

How do I write and use the equivalent of serverside includes in Odoo? <  include virtual="/templates/footer.asp" >

I've stared for days at this code without getting a clue! https://stackoverflow.com/questions/41855895/how-to-include-in-odoo

Please help me to complete the following code to something that that I can understand and that actually works! :-)

[code]module.localID
website.layout
myModule.layout
<template id="mLayout">
    <div>Header</div>
    <t t-raw="0" />
    <div>Footer</div>
</template>
<template id="myModule">
    <t call="mLayout">
    ... code

   </t>
</template>[/code]

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 24
1161
1
3月 24
4261
1
7月 24
2126
1
8月 22
4619
2
1月 25
5501