تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
3 الردود
8670 أدوات العرض

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مارس 24
27800
1
مارس 15
10717
0
مارس 15
5751
1
مارس 15
10202
45
أبريل 23
85057