Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
5248 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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
Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
1
maj 25
10269
1
kwi 24
2631
1
lut 23
2677
2
cze 22
3361
2
lis 21
3086