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
2380 Widoki

I would expect the field employee in table res_partner to indicate whether there is a user associated with that partner. The value is always false in my implementation Odoo10.

Is there any other way I can use to select all partners that are users for a security rule?

Thanks for any hint, hj

Awatar
Odrzuć
Autor

Sorry correcting the question: I would expect the field employee in table res_partner to indicate whether there is an employee associated with that partner.

Is there any other way I can use to select all partners that are employees for a security rule? Thanks to Ermin for the remark.

I have a question almost the same here (https://www.odoo.com/fr_FR/forum/aide-1/question/do-you-know-if-the-field-employee-of-res-partner-is-used-somewhere-114791).

The field 'employee' of the res.partner model doesn't seem to be modified nowhere in the code. I'm still searching in the python code where it could get to True. All my partners have this field always to False... So, may be we will have to change the code to get this field updated when the partner is really an employee.

Najlepsza odpowiedź

Employees and users are different entities. A user most not be an employee and an employee must not necessarily be a user.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
lip 25
5119
2
gru 24
8061
2
lis 24
28847
2
maj 24
7720
3
mar 24
7196