Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
3 Vastaukset
5670 Näkymät

I've set an access rule on partner object for the group "external salesman". I want the same thing than "see own leads" but for partners. This is the domain rule:

['|','|',('user_id','=',user.id),('user_ids','in',user.id),('parent_id','=',1)] They can see partners where they are salesperson, themselves and all the employee of the company.

but I have 2 problem:

-some partners are visible on kanban view but not in form view.

-In calendar menu I can't see the attendees option: when I click on the select box I 've an error message "you don't have permissions Read on object Partner." But if I start to write the name of one of my partner it's ok.

Avatar
Hylkää
Tekijä Paras vastaus

After some research I found this domain expression :

['|',['user_id', '=', user.id], ['parent_id', 'child_of', ['Company_Name']]]

And that does what I want.

But I don't understand ['parent_id', 'child_of', ['Company_Name']]! If you could explain me.

Avatar
Hylkää
Paras vastaus

hi,

try it,domain:['|',('user_id', '=', user.id), ('user_id','=' False)]

Avatar
Hylkää
Paras vastaus
fffffdfddrftgf
Avatar
Hylkää
Tekijä

It's not an answer.

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
1
elok. 15
6110
5
toukok. 24
25387
1
lokak. 22
4478
5
syysk. 22
11921
1
helmik. 22
26309