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

Hello, I have make a server action who create a crm.meeting object at the creation of a project.task.work object. I want to have a single calendar with all "meetings"(holidays, meeting, project task and so on).

But work object has just a duration and a date field, how can I calculate the date_deadline field for meeting object with one datetime and one float.

I remember that for duration 8:30=8,5 in database.

I don't know how to do.

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

Maybe you could use the datetime and timedelta Python module if you are programming it?

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

I'll test it

Tác giả

thanks a lot

Câu trả lời hay nhất

Dear, seee the lunch module ...

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

what can I found on lunch module?

You will find a way to add days to the current date in demo data XML file!

Câu trả lời hay nhất

try this:

<field name="date_deadline" widget="float_time"/>

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

error:" arch: Invalid XML for View Architecture!' ". But thanks for help. I will try to build a function who make this and call it in my view.

'date_deadline' must be of type float btw. I have a payroll system that uses that function specially for the biometric and attendance

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 24
27884
1
thg 3 15
10804
0
thg 3 15
5829
1
thg 3 15
10260
45
thg 4 23
85252