Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5253 มุมมอง

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
อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ค. 25
10271
Website customization แก้ไขแล้ว
1
เม.ย. 24
2641
1
ก.พ. 23
2690
Importing articles to the blog แก้ไขแล้ว
2
มิ.ย. 22
3363
2
พ.ย. 21
3088