İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
6399 Görünümler

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

Avatar
Vazgeç
Üretici En İyi Yanıt

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.

Avatar
Vazgeç
Üretici

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.

En İyi Yanıt

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

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
May 21
2043
2
Tem 25
377
Activity vs Task Çözüldü
2
Eyl 23
4753
3
Nis 22
2730
1
Şub 22
2707