コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
5249 ビュー

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?

アバター
破棄
最善の回答

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
アバター
破棄
関連投稿 返信 ビュー 活動
1
5月 25
10270
1
4月 24
2631
1
2月 23
2679
2
6月 22
3361
2
11月 21
3086