Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
3 Antwoorden
8696 Weergaven

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.

Avatar
Annuleer
Beste antwoord

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

Avatar
Annuleer
Auteur

I'll test it

Auteur

thanks a lot

Beste antwoord

Dear, seee the lunch module ...

Avatar
Annuleer
Auteur

what can I found on lunch module?

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

Beste antwoord

try this:

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

Avatar
Annuleer
Auteur

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

Gerelateerde posts Antwoorden Weergaven Activiteit
2
mrt. 24
27818
1
mrt. 15
10744
0
mrt. 15
5790
1
mrt. 15
10215
45
apr. 23
85105