Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4342 Lượt xem

Now in Odoo 13 we can select the optional field in any tree view . Any changes made in the optional field will lead to a change in the tree view of all the companies . Can I restrict the change made in one company 's tree must remain in that company?

For more details , see the below link to view the screenshot

https://ibb.co/9bwDwDx

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

All the options fields are stored in browser local storage. so I think it will not create an issue in production where most of the users stick to one company with their browser.

however, you want to solve the issue you can extend the javascript part and add the addition keypart as compnay_id in the local storage identifier. 

https://github.com/odoo/odoo/blob/13.0/addons/web/static/src/js/views/basic/basic_controller.js#L462
you can get allowed_companies and current_company from the session.


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 1 24
1411
1
thg 9 24
1454
2
thg 10 22
5700
1
thg 3 22
6441
1
thg 10 20
3168