I need to tell Odoo to use a specific form view for a specific menuitem (new module) without overriding base view so it won't affecting other menus. mode=primary doesn't do anything. Should I make a new model inherited from the base model? (Use _name and _inherit) and use that new model in the view (model=new.model). Or maybe I can use Action or Context to tell Odoo to use the new form view?
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ờ
Hi,
Using mode primary you can create a new view without affecting the original view, and set a higher priority value for the newly created view.
100
Once the priority is set as higher, in the default menus, the original view will displayed as its priority is less(considering the action of menu doesn't contains view_ids)
Now in your newly created menu, along with the menu action specify the views using the view_ids key.
For more, see: https://www.youtube.com/watch?v=-2EAt9nN4o0
Thanks
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 | |
---|---|---|---|---|
|
1
thg 11 22
|
3377 | ||
|
1
thg 9 22
|
2667 | ||
Odoo 13: Form view inherit
Đã xử lý
|
|
4
thg 6 21
|
7057 | |
|
1
thg 5 16
|
3862 | ||
|
5
thg 11 15
|
13271 |
Thanks, it works now! But I don't understand what is the {5, 0, 0} doing in the first records
It is for clearing the existing values