Are access rights (record rules) bugged or I'm missing something? The only user that can see multiple companies, is admin user. Other users, does not matter what access rights they have, they can only see one company that is chosen for them, even if I put all companies in allowed companies
section, that user still sees only company that is chosen for him (which is called representing company). Is the only way to modify record rules or I'm missing something?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
9258
Tampilan
A user can switch between his allowed companies with the Preferences menu, but he will always see only the selected company with the current record rules.
If you want your user to see the records of all his allowed companies at the same time, you have to edit the ir.rule for this object and put something like that:
<record id="product.product_comp_rule" model="ir.rule">
<field name="domain_force">['|',('company_id','in',[c.id for c in user.company_ids]),('company_id','=',False)]</field>
</record>
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
0
Okt 19
|
4028 | ||
|
0
Jun 16
|
3384 | ||
|
2
Feb 16
|
4801 | ||
|
1
Mar 15
|
5199 | ||
|
2
Feb 25
|
2342 |
Even am facing this problem, Every time one cannot keep going and changing the Company in the Preference.. Any alternate way will be good.