Hello Everyone i want to change the name of the existing menu like shop menu name to product in odoo website . i want to change the name through code not from front end . i have tried too many methods but no success .
thanks in advance
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hello,
It comes from an Data File of /website_sale/data/data.xml
So, you should create 1 XML file in your Custom Module and write below code in your Custom module if you want by Custom Module.
I Placed Code in Comment section because this one not take Code Format properly.
Hope it helps!
Thanks & Regards, Sunny Sheth
<function name="write" model="ir.model.data">
<!-- First we need to find the record...-->
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'website_sale'), ('name', '=', 'menu_shop')]"
/>
</function>
<!-- ...and temporarily set the noupdate field to False-->
<value eval="{'noupdate': False}" />
</function>
<!-- Get our main job done, i.e. modify the domain_force field of a record -->
<record id="website_sale.menu_shop" model="website.menu">
<field name="name">Product</field>
</record>
<!-- (Optional) Time to clean our dirty hand, set the previously noupdate False to True again -->
<function name="write" model="ir.model.data">
<function name="search" model="ir.model.data">
<value
eval="[('module', '=', 'website_sale'), ('name', '=', 'menu_shop')]"
/>
</function>
<value eval="{'noupdate': False}" />
</function>
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
3
thg 5 25
|
2605 | ||
|
0
thg 12 23
|
2346 | ||
|
1
thg 12 23
|
1221 | ||
|
1
thg 7 23
|
2373 | ||
|
2
thg 4 23
|
3734 |