Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
3 ตอบกลับ
8348 มุมมอง

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.

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
ผู้เขียน

I'll test it

ผู้เขียน

thanks a lot

คำตอบที่ดีที่สุด

Dear, seee the lunch module ...

อวตาร
ละทิ้ง
ผู้เขียน

what can I found on lunch module?

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

คำตอบที่ดีที่สุด

try this:

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

อวตาร
ละทิ้ง
ผู้เขียน

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 24
27350
1
มี.ค. 15
10479
0
มี.ค. 15
5481
1
มี.ค. 15
9967
45
เม.ย. 23
84406