Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4611 Widoki

Hello,

I want to put user to a few sales teams. 

I think solutions is there:

https://www.odoo.com/forum/help-1/question/odoo-10-how-to-assign-a-user-in-two-sales-teams-simultaneously-114971


but this plugin Website_crm_score is only for enterprise version :(

So i wanna try another solution.

Jérémy Kersten write to add 
 an ir.rule on salesteam with " [('team_user_ids', 'in', user.id)] "


but unfortunately i can't find that. 

Where i can find this place, where i can put this rule ?



Awatar
Odrzuć
Autor Najlepsza odpowiedź

Ok i find solutions:


1) In crm.team model create field x_member_ids with field type many2many and object relation to res.users

2) change in addon sales_team/sales_team.py line:

'member_ids': fields.one2many('res.users', 'sale_team_id', 'Team Members'),

to 

'x_member_ids': fields.many2many('res.users', 'crm_team_res_users_rel','crm_team_id','res_users_id', 'Team Members'),


and in form view in crm.team.form change field member_ids to x_member_ids

3) That's it! Now you can add one user to many groups !



Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
gru 23
3341
2
wrz 15
5463
12
mar 24
15191
2
maj 19
3792
3
lis 17
12108