I'm the Administrator and I see everyone's notes but they don't see mine. Can I configure my account to behave like their's in this way?
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ờ
As @Fabrice Henrion said, rules does not apply to superuser (i.e. Administrator).
Nevertheless, you can change the action called by the menu "Notes" adding the desired domain, and in that way, the domain will be ensured.
The domain to add is:
[('user_id','=',uid)]
This can be achived in and `XML` file:
<record model="ir.actions.act_window" id="note.action_note_note">
<field name="domain">[('user_id','=',uid)]</field>
</record>
Or this can be done from inside the system (you have to enable Technical Features first to see the menu): <I tried to mebed the image without luck...Click to see image>
Hope this helps! you can give domain by group by like,
For Example:
suppose you have two groups:
1. Admin Group
2. Normal User Group
now for admin user you can apply this domain in ir.rule:
<field name="domain"> [(1,'=',1)] </field>
and for normal user group you can give
<field name="domain"> [('user_id','=',user.id)] </field>
then in result admin can view all records and normal user can view only own records
Record rules don't apply to user id=1 (admin). So, no you cannot. You should have your own user and use admin for admin purposes only.
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 | |
---|---|---|---|---|
|
7
thg 9 20
|
7483 | ||
|
1
thg 11 17
|
4070 | ||
|
0
thg 11 16
|
4034 | ||
|
1
thg 1 24
|
32482 | ||
|
0
thg 7 15
|
3048 |