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

Hi everyone,

when defining a task in Odoo Project 14, the only date that can be inserted is the deadline: in this way it's not possible to "complete" a task (i.e. setting an end_date) or to keep track of the duration of the tasks (end_date - start_date).

However, activating developer mode and searching all the fields of project.task module I can see "is_closed" and "date_end" fields, which could be very helpful in achieving what I need. 

So my question is: how can I "include" in the task insert/edit menus these two additional fields ? Should I create a completely new module to do this?

Any feedback about this is greatly appreciated.

Thanks

아바타
취소
작성자 베스트 답변

HI James,

thank you for your answer: I've never seen the menu/options of your screenshot in my Project app, maybe my installation is missing something ? Anyway I don't need to record task time, I simply want to add a start and an end date to my task in order to extract some statistics, monitor average duration and "mark" tasks as completed if the end date is before the deadline, this is why I mentioned those two fields.

아바타
취소
작성자

I was able to partially "solve" this creating a new view based on "project.task.form" view where I simply added the line <field name="date_end" attrs="{'invisible': [('is_closed', '=', True)]}"/> in the architecture.
In this way each user can add the end_date when a task is completed, I will enforce this by adding an automated action which raises an error if the user changes the stage of a task (from "Current" to "Completed" for example) without inserting the end_date.
To me this looks like a very "brutal" approach but at least I can calculate the duration of every completed task (based on the task creation and not on the "start_date") and monitor the late ones (where end_date is greater than deadline), if someone has better suggestions to solve this feel free to share and discuss them.

베스트 답변

Hi Matteo,

If you schedule a project task, then those fields are used during the creation of the schedule.  When the task is worked on - if you use the task timer to record your time - then you can see the accumulated time spent on that task in the Project Schedule.

Not exactly what you are asking, but that is how to use the start_date and end_date.

Example here:  https://pasteboard.co/KeCtYXd.jpg

아바타
취소
관련 게시물 답글 화면 활동
0
5월 21
2276
2
7월 25
834
Activity vs Task 해결 완료
2
9월 23
5004
3
4월 22
2914
1
2월 22
2926