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

[IMP] project_timesheet_holidays: improve Generate Timesheets Feature #165674

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

suth-odoo
Copy link
Contributor

@suth-odoo suth-odoo commented May 15, 2024

Before this commit:

By default, the current company is set on time off types. As such, the internal
project of the current company is set.

After this commit:

This commit improves the functionality related to generating timesheets within
the project_timesheet_holidays module. Specifically, it removes the association
of projects and tasks from the time-off type and hides generated timesheets.

Reason:

if we set the company of the time off type to false, we either have:

  • no project -> meaning the user will disable the feature without realizing as
    the field is only visible in debug mode;
  • the internal project of the current company that remains set ->
    meaning the feature won't work for the other companies in which a time off
    request is created.

task-3605962

@robodoo
Copy link
Contributor

robodoo commented May 15, 2024

Pull request status dashboard.

@C3POdoo C3POdoo added the RD research & development, internal work label May 15, 2024
@suth-odoo suth-odoo force-pushed the master-time-off-type-remove-project-task-ppr branch 9 times, most recently from de5ec52 to 2a40a72 Compare May 22, 2024 11:40
@ppr-odoo ppr-odoo force-pushed the master-time-off-type-remove-project-task-ppr branch from 2a40a72 to f71025b Compare May 22, 2024 12:43
@ppr-odoo ppr-odoo changed the title [IMP] project_timesheet_holidays: remove the task/project fields from… [IMP] project_timesheet_holidays: improve Generate Timesheets Feature May 22, 2024
@suth-odoo suth-odoo force-pushed the master-time-off-type-remove-project-task-ppr branch 6 times, most recently from 7b9f1bf to b2f4bb1 Compare May 23, 2024 09:18
Before this commit:
By default, the current company is set on time off types. As such, the internal
project of the current company is set.

After this commit:
This commit improves the functionality related to generating timesheets within
the project_timesheet_holidays module. Specifically,  it removes the association
of projects and tasks from the time-off type and hides generated timesheets.

Reason:
 if we set the company of the time off type to false, we either have:
- no project -> meaning the user will disable the feature without realizing as
the field is only visible in debug mode;
- the internal project of the current company that remains set ->
 meaning the feature won't work for the other companies in which a time off
 request is created.

task-3605962
@suth-odoo suth-odoo force-pushed the master-time-off-type-remove-project-task-ppr branch from b2f4bb1 to 1348321 Compare May 24, 2024 05:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants