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

[12.0][REF] hr_timesheet_activity_begin_end: Make more extensible #693

Open
wants to merge 2 commits into
base: 12.0
Choose a base branch
from

Conversation

carmenbianca
Copy link
Member

Backport from #692

Internal task: T12630

@carmenbianca carmenbianca changed the title [12.0][REF] hr_timesheet_begin_end: Make more extensible [12.0][REF] hr_timesheet_activity_begin_end: Make more extensible Jun 21, 2024
@carmenbianca carmenbianca force-pushed the 12.0-backport-refactor-begin-end branch from 7e91bb3 to d2a459c Compare June 21, 2024 12:21
Copy link
Member

@huguesdk huguesdk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

Timesheet lines are characterised by having a project.

Signed-off-by: Carmen Bianca BAKKER <[email protected]>
The separation of checks into separate methods is needed because I want
to disable one check in another module. This makes the module more
extensible.

The unit_amount_from_start_stop method also makes the module more
extensible.

I have also moved the onchange to the top of the file, according to the
OCA contribution guidelines.

Signed-off-by: Carmen Bianca BAKKER <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants