Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
1032 Lượt xem

I want to calculate Late time in attendance

Late: If an employee comes after scheduled time then that count in late

how can I do it by studio?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

First, enable developer mode in Odoo. Then, follow these steps:

  1. Navigate to Settings > Technical > Database Structure > Models.
  2. Select the model where you want to add the new field.
  3. Create a new computed field for calculating the late time.
    • Set the field type to match your requirement (e.g., Float for hours or Integer for minutes). For example, 23.25 -> 23:25
    • Define the compute method in Python to calculate late time by comparing the scheduled time with the employee's check-in time.

Open the application (e.g., Attendance) where you want to add the late time calculation.

Click on Studio in the top-right corner.

Drag and drop a new Computed Field from the Studio panel into the desired location on the form or list view.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 1 25
993
0
thg 6 24
1631
1
thg 9 24
1430
2
thg 9 24
8806
0
thg 2 24
1616