Skip to Content
Menu
This question has been flagged
1 Atsakyti
1949 Rodiniai

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!

Portretas
Atmesti
Best Answer

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 

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
0
vas. 25
30
1
vas. 25
1041
0
lapkr. 24
1180
4
rugp. 23
12276
1
kov. 23
4773