コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
1970 ビュー

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!

アバター
破棄
最善の回答

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 

アバター
破棄
関連投稿 返信 ビュー 活動
0
2月 25
30
1
2月 25
1048
0
11月 24
1183
4
8月 23
12299
1
3月 23
4792