project icon indicating copy to clipboard operation
project copied to clipboard

WIP [14.0] new module project_consumable

Open petrus-v opened this issue 3 years ago • 4 comments

As discussed on https://odoo-community.org/groups/contributors-15/contributors-195985?mode=thread&date_begin=&date_end= here a suggested implementation to follow materials/consumable usages per projects

~Depends on https://github.com/OCA/project/pull/920 (merged) to pass unite tests.~

  • [x] make available products configurable
  • [x] add views/report views to record materials (in Timesheets)
  • [x] take care impact in timesheets view/report views (in Timesheets main menu) deploy in production from june 2021
  • [x] adapt project overview to be consumable aware deploy in may 2022
  • [x] add material tab/action button in project/tasks
  • [x] ensure action button and counters to get timesheets use proper domains

petrus-v avatar May 24 '21 20:05 petrus-v

At the time writing it's in a WIP state cf above checklist otherwise reviews and comments are welcome, let me know if you have better idea in naming things !

petrus-v avatar May 24 '21 20:05 petrus-v

[thinking out loud]

I've the feeling that end users think more about project than analytic account so I thinks it's important to link to project/tasks and more accurate as many projects could be linked to the same analytic account.

I think code could be simpler if we do not link material consumption to project (as a lot of code assume account.analytic.line to be timesheet as long there is project_id defined on the line). Instead we could link to analytic account or new dedicated consumable_project_id/consumable_task_id field :thinking:...

petrus-v avatar May 24 '21 21:05 petrus-v

creating dedicated consumable_project_id/consumable_task_id won't be a good solution or deport complexity to the reporting/analysis parts...

petrus-v avatar May 25 '21 07:05 petrus-v

The latest commit 61e6dda is about fixing unit test base on issue found in project_sequence_task, I'll move it in a dedicated PR if test passed !

petrus-v avatar May 09 '22 08:05 petrus-v