[18.0][ADD] hr_timesheet_encode_day_float: add new module - #944
Open
marcelsavegnago wants to merge 1 commit into
Open
[18.0][ADD] hr_timesheet_encode_day_float: add new module#944marcelsavegnago wants to merge 1 commit into
marcelsavegnago wants to merge 1 commit into
Conversation
marcelsavegnago
marked this pull request as draft
July 21, 2026 16:19
marcelsavegnago
marked this pull request as ready for review
July 21, 2026 16:31
marcelsavegnago
force-pushed
the
18.0-add-hr_timesheet_encode_day_float
branch
from
July 21, 2026 19:06
89de567 to
d432c52
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces the new
hr_timesheet_encode_day_floatmodule, which allows users to enter timesheet values in days as free decimal floats, rather than being limited to a half-day toggle. The implementation includes configuration, data changes, uninstall handling, and tests to ensure correct behavior.Main features and changes:
Feature: Free Decimal Day Input for Timesheets
hr_timesheet_encode_day_floatmodule, enabling timesheet day encoding as a free decimal float field instead of a fixed toggle (0/0.5/1). Users can now enter any fraction of a day (e.g.,0.2,0.75,3). (__manifest__.py,README.rst,DESCRIPTION.md,USAGE.md) [1] [2] [3] [4]uom.product_uom_day) to use thefloat_factorwidget, allowing free decimal input. (data/uom_data.xml)Configuration and Integration
res.config.settingsto add "Days" as a selectable timesheet encoding method, integrating the new float input into standard settings. (models/res_config_settings.py)Uninstall Handling
hooks.py)Testing
tests/test_encode_day_float.py)Documentation and Packaging
README.rst, usage instructions, contributor credits, and packaging files for OCA compatibility. (README.rst,CONTRIBUTORS.md,pyproject.toml) [1] [2] [3]These changes make timesheet entry in days more flexible and user-friendly, while maintaining compatibility with Odoo's unit of measure and timesheet configuration.