Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2943 Zobrazení

Hi i am using odoo 14 CE , i tried this code which enables the users except the admin user to see only their customer for sales user own document , but it doesnt allow the user to create the customer , what should i do in this code or externally so that sale users own document can create customers and access only those customers they create



model="ir.rule" id="partner_view_rule_salesperson">
name="name">Sales Person View Rule
name="model_id" ref="base.model_res_partner"/>
name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
name="domain_force">[('user_id', '=', user.id),'|', ('type', '!=', 'private'), ('type', '=', False)]



model="ir.rule" id="partner_view_rule_manager">
name="name">Sales Person View Rule
name="model_id" ref="base.model_res_partner"/>
name="groups" eval="[(4, ref('sales_team.group_sale_manager'))]"/>
name="domain_force">[(1, '=', 1)]


thank you

Avatar
Zrušit
Nejlepší odpověď

Hi,

Check "Contact Creation" access right

go to Settings--> Users-->open user form-->scroll down to " Extra Rights"


Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
1
led 22
2385
4
čvn 25
2083
0
čvn 21
2835
1
bře 15
9406
3
úno 24
4669