콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
3 답글
8734 화면

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
3월 24
27878
1
3월 15
10797
0
3월 15
5817
1
3월 15
10252
45
4월 23
85233