Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4775 มุมมอง

In Odoo 14, I'm trying to add some templates that inherits `portal.frontend_layout`. But it's throwing `Element '< xpath expr="//head/link[last()]" >' cannot be located in parent view.`


In portal.frontend_layout, inherits web.frontend_layout, where I can see that `//head/link[last()]` code is there & the inherited web.layout DOES has link inside head tag.


Is it an issue on the base code? or something wrong in my inherited view?


This is my sample code:

    < template id="website_menu_header_customized" 
inherit_id="portal.frontend_layout"
name="Header Language Link" >
....

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

You have to inherit web.frontend_layout instead of portal.frontend_layout because portal.frontend_layout doesn't have any head tag.    

<template id="website_menu_header_customized"
inherit_id="web.frontend_layout"
        name="Header Language Link">


Hope it helps

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
4
ก.พ. 24
32561
0
เม.ย. 22
3548
2
มี.ค. 24
2816
1
ส.ค. 22
2320
OVERWRITE MY ACCOUNT PORTAL แก้ไขแล้ว
2
มี.ค. 22
4307