Ajuda

0

How to add an anchor to website menu odoo 13

I was creating a website in I was able to create homepage 

wanted to create 

<a href="#services">Features</a>

how to created it using code 


<record id="n_theme_web_h_home" model="website.page">
<field name="name">Home</field>
<field name="website_published">True</field>
<field name="is_homepage">True</field>
<field name="url">/</field>
<field name="view_id" ref="n_theme.web_h_home"/>
</record>

<record id="n_theme_web_h_home__home_link" model="website.menu">
<field name="name">Home</field>
<field name="url">/#home</field>
<field name="page_id" ref="n_theme_web_h_home"/>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence" type="int">1</field>
</record>


<record id="n_theme_web_h_home__services_link" model="website.menu">
<field name="name">Services down</field>
<field name="url">#services</field>
<field name="parent_id" ref="website.main_menu"/>
</record>

but `n_theme_web_h_home__services_link` did not work 


Avatar
Descartar