-
Notifications
You must be signed in to change notification settings - Fork 24.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] uom: introduces duration unit of measure
This commit introduces the duration (time) units of measures, flagged as internation unit of measure. We already have the "working time" UoM, but those ones are customizable and might differ from the International System of Units; indeed, one working day means 8 hours (more or less) for some company. The rational here is, when we are handling datetime, we need to get the UoM in the Odoo System to convert the result; for instance, computing the difference between 2 datetimes will return the number of days (or hours). But you need to match it with an odoo UoM to extract informations from that value. This unit of measure 'duration' is like a master data, because existing in the real world and that many module will depend on. Task-1971491
- Loading branch information
Showing
2 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains 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
This file contains 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