On 20 Aug 13:38, Albert Cervera i Areny wrote: > Since we dropped support for inherits the user interface in the > project module is quite wired. You need to create a work for a project > (typically using the m2o field) and you cannot have to projects > pointing to the same work (which is quite logical). We created a small > module to hide [1] those details from the user but I'm not still very > happy with the current design. > > After all, if work is meant to be used as a lightweight version of a > task why would we want it to be a hierarchy?
I start to think like you that the hierarchy could be just only on the project.work and not on timesheet.work. For timesheet we could maybe just create a group field. > Wouldn't it be better if > we remove the "work" field from timesheet.line and replace it with a > field of type reference which allows selecting tasks or other kind of > models? I don't think so because: - reference field doesn't work an editable list - it makes thinks more complex to the user who has to first select a model before selecting the task. > This would allow to have all the time-related information from > employees in a single place no matter if the work was in a > project.work or the "production" equivalent. We could also create a > timesheet.work for each production work but there the hierarchy and > some other fields of the model seem overkill. Agree for hierarchy see before. > Maybe the problem is that I don't fully understand what work should be > used to and why those > timesheet_available, This one will have no usage if hierarchy is dropped. > timesheet_start_date and > timesheet_end_date would be necessary in the base module... I think it is a good utility and will be usefull also in case of link between production and work. (You don't want user to enter timesheet for old production). You can see them as an active field base on time. -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpLN3Z1vHEac.pgp
Description: PGP signature