Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4790 Weergaven

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" >
....

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
feb. 24
32580
0
apr. 22
3555
2
mrt. 24
2844
1
aug. 22
2331
2
mrt. 22
4314