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:
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
2
8月 25
|
2685 | ||
|
3
2月 25
|
3927 | ||
|
0
5月 24
|
46 | ||
|
1
4月 24
|
3575 | ||
|
4
9月 23
|
5129 |