Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0] new module project_consumable #814

Closed
wants to merge 1 commit into from

Conversation

petrus-v
Copy link
Contributor

@petrus-v petrus-v commented May 24, 2021

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 #920 (merged) to pass unite tests.

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

@petrus-v
Copy link
Contributor Author

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
Copy link
Contributor Author

[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 🤔...

@petrus-v
Copy link
Contributor Author

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

petrus-v added a commit to petrus-v/project that referenced this pull request May 9, 2022
…mpanies

Seen in unittest while developed OCA#814
While creating a new company a new project is created with 2 tasks by
the hr_timesheet._create_internal_project_task method.

Whithout sequence availaible task can't be created and raise un exception as
code is null
@petrus-v
Copy link
Contributor Author

petrus-v commented May 9, 2022

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 added a commit to petrus-v/project that referenced this pull request May 9, 2022
…mpanies

Seen in unittest while developed OCA#814
While creating a new company a new project is created with 2 tasks by
the hr_timesheet._create_internal_project_task method.

Whithout sequence availaible task can't be created and raise un exception as
code is null
This module give the ability records consumuable product
per project to track in your analytic.
@petrus-v petrus-v changed the title WIP [14.0] new module project_consumable [14.0] new module project_consumable Oct 19, 2022
@github-actions
Copy link

There hasn't been any activity on this pull request in the past 4 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this PR to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Feb 19, 2023
@github-actions github-actions bot closed this Mar 26, 2023
Ricardoalso pushed a commit to camptocamp/project that referenced this pull request Oct 6, 2023
…mpanies

Seen in unittest while developed OCA#814
While creating a new company a new project is created with 2 tasks by
the hr_timesheet._create_internal_project_task method.

Whithout sequence availaible task can't be created and raise un exception as
code is null
Ricardoalso pushed a commit to camptocamp/project that referenced this pull request Oct 6, 2023
…mpanies

Seen in unittest while developed OCA#814
While creating a new company a new project is created with 2 tasks by
the hr_timesheet._create_internal_project_task method.

Whithout sequence availaible task can't be created and raise un exception as
code is null
fulldev1023 added a commit to fulldev1023/project-odoo that referenced this pull request Mar 14, 2024
…mpanies

Seen in unittest while developed OCA/project#814
While creating a new company a new project is created with 2 tasks by
the hr_timesheet._create_internal_project_task method.

Whithout sequence availaible task can't be created and raise un exception as
code is null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant