Skip to content

[19.0][MIG][ADD] hr_timesheet_begin_end_break - #943

Open
bosd wants to merge 2 commits into
OCA:19.0from
bosd:19.0-timesheet-begin-end-break
Open

[19.0][MIG][ADD] hr_timesheet_begin_end_break#943
bosd wants to merge 2 commits into
OCA:19.0from
bosd:19.0-timesheet-begin-end-break

Conversation

@bosd

@bosd bosd commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Takes over and forward-ports #853 to 19.0.

What

Adds hr_timesheet_begin_end_break, extending hr_timesheet_begin_end with a
break_duration field that is deducted from the worked hours:
unit_amount = time_stop - time_start - break_duration.

Commits

  • [ADD] — squashed takeover of [ADD] hr_timesheet_begin_end_break: Add break duration field. #853, authored by the original author
    (Slivi-sliv)
    , with the review comments addressed (English-only test
    comments, fragmented readme/, documented constraint override).
  • [MIG] — migration to 19.0: version bump, constraint aligned with the 19.0
    base implementation, break field added to the task timesheet sub-view form,
    OCA icon, .pot, and a demo-independent test fixture.

Add a break duration field on begin/end timesheet lines, deducted from the
worked hours: unit_amount = time_stop - time_start - break_duration.

Squashed takeover of OCA/timesheet PR OCA#853, with review fixes:
English-only test comments, fragmented readme/ fragments, and a documented
rationale for overriding the base begin/end duration constraint.

Co-authored-by: Stefano Consolaro <stefano.consolaro@mymage.it>
@OCA-git-bot OCA-git-bot added series:19.0 mod:hr_timesheet_begin_end_break Module hr_timesheet_begin_end_break labels Jul 15, 2026
@bosd bosd changed the title [19.0][MIG] hr_timesheet_begin_end_break [19.0][MIG][ADD] hr_timesheet_begin_end_break Jul 15, 2026
- Bump manifest to 19.0.1.0.0 and depend on hr_timesheet_begin_end only.
- Align the duration/overlap constraint with the 19.0 base implementation
  (env._, float_time value_to_html, precision_rounding, simplified overlap
  domain), keeping break_duration in the duration expectation.
- Add the break field to the embedded task timesheet form sub-view.
- Add OCA icon, generate README.rst from fragments, add i18n .pot.
@bosd
bosd force-pushed the 19.0-timesheet-begin-end-break branch from ed26ce7 to 24cdad4 Compare July 15, 2026 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

mod:hr_timesheet_begin_end_break Module hr_timesheet_begin_end_break series:19.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants