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

Hello,

I am trying to configure a many2one field to select only the employees that are currently checked in in the attendance app and, if possible, to discriminate by a given employee Badge ID. What rules do I have to select?

I am using odoo 15.

Much appreciated!

Awatar
Odrzuć
Najlepsza odpowiedź

Hi Razvan,

You can add corresponding domain for the many2one field.You have to show only those employees who are currently checked.Checked in and Checked out states are managed using a selection field attendance_state inside the employee model.So give the domain based on this field.

Eg :  

domain="[(attendance_state,'=','checked_in')]"

Regards 

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
lut 25
30
1
lut 25
1241
0
lis 24
1348
4
sie 23
12664
1
mar 23
5246