Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
5256 Vistas

I need to override this data record from blog module:

<record id="menu_news" model="website.menu">            
<field name="name">Blog</field>
<field name="url" eval="'/blog/'+str(ref('website_blog.blog_blog_1'))"/>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence" type="int">40</field>
<field name="website_id" ref="website.default_website"/>
</record>

 

Then I will change the URL. How can I inherit that in my module?

Avatar
Descartar
Mejor respuesta

Create datafile on your custom module:

<data noupdate="0">

<record id="website_blog.menu_news" model="website.menu">

            <field name="name">You name or whatever you want</field>

        </record>


and then restart the system with the next command

./odoo-bin  --config=/path_to_config -i your_module
Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
may 25
10272
1
abr 24
2653
1
feb 23
2710
2
jun 22
3365
2
nov 21
3089