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

I have a quick question on how about to create a custom button for a existing model.

I want to make a button for each of our employees to check in and check out with one click.

This will be an overview page of all our employees where I add two buttons to each employee. One with check in and one with check out. This way they don't need to fill a form.

Can someone provide me with an example of how to make one button?

Thank you for your answer!

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

Hi,

You can create a button by this line of code,

<button string="Check in" type="object" name="action_check_in" class="oe_highlight"/>

Either you can add it in original code or you can add it by inheriting the original.

Before doing this please check the Kiosk Mode , that support employee check in and check out without filling any form


Install hr_attendance module, then go to Attendances -> Mange attendances -> Kiosk mode

Thanks

Ảnh đại diện
Huỷ bỏ
Tác giả

I would like this kiosk mode a lot, but I cannot go to Manage attendances. When I press settings, I get a blank attendance list. I am logged in as an adminstrator and I have debug mode on, what am I doing wrong?

Tác giả

This is for odoo 10, my bad. I was looking in odoo9. I found it and it works great!

Try to specify the version while posting questions

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 8 25
1521
3
thg 7 25
2232
1
thg 7 25
1762
0
thg 1 25
1374
1
thg 12 24
1758