project
project copied to clipboard
WIP [14.0] new module project_consumable
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
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 !
[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:...
creating dedicated consumable_project_id/consumable_task_id won't be a good solution or deport complexity to the reporting/analysis parts...
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 !