I just want every user to see a partner and thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухгалтерия
- Склад
- PoS
- Project
- MRP
Этот вопрос был отмечен
Hi Mohamed,
You need to write an Record Rule for Partner/Contact table to achieve that.
Note:- See the answer in Comment because not able to copy code here in format.
Thanks & Regards,
<record model="ir.rule" id="partner_view_rule_salesperson">
<field name="name">Sales Person View Rule</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]" />
<field name="domain_force">[('user_id', '=', user.id)]</field>
</record>
For the Managers,
<record model="ir.rule" id="partner_view_rule_manager">
<field name="name">Sales Person View Rule</field>
<field name="model_id" ref="base.model_res_partner"/>
<field name="groups" eval="[(4, ref('sales_team.group_sale_manager'))]" />
<field name="domain_force">[(1, '=', 1)]</field>
</record>
thnak you
but in account Appears :
The requested operation ("read" on "Contact" (res.partner)) was rejected because of the following rules:
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
РегистрацияRelated Posts | Ответы | Просмотры | Активность | |
---|---|---|---|---|
|
2
авг. 25
|
2678 | ||
|
3
февр. 25
|
3924 | ||
|
0
мая 24
|
46 | ||
|
1
апр. 24
|
3574 | ||
|
4
сент. 23
|
5123 |