Duration Mixin
by OpenSynergy Indonesia https://simetri-sinergi.id , PT. Simetri Sinergi Indonesia https://simetri-sinergi.id
Odoo
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Community Apps Dependencies | Show |
| Lines of code | 119 |
| Technical Name |
ssi_duration_mixin |
| License | AGPL-3 |
| Website | https://simetri-sinergi.id |
Duration Mixin
ssi_duration_mixin provides two abstract Odoo models for recording time spans on any document.
- mixin.date_duration — adds date_start and date_end date fields using DateCallable for fully configurable labels, required/readonly states, and a built-in constraint that enforces date_end >= date_start. All field attributes (required, readonly, string, state overrides) are driven by class-level attributes, so subclasses need no field re-declarations.
- mixin.datetime_duration — a simpler variant that adds plain Datetime start and end fields for cases where date-level precision is sufficient and extended configurability is not needed.
Installation
To install this module, you need to:
- Clone the branch 14.0 of the repository https://github.com/open-synergy/ssi-mixin
- Add the path to this repository in your configuration (addons-path)
- Update the module list (Must be on developer mode)
- Go to menu Apps -> Apps -> Main Apps
- Search For Duration Mixin
- Install the module
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smash it by providing detailed and welcomed feedback.
Credits
Contributors
- Michael Viriyananda <viriyananda.michael@gmail.com>
- Andhitia Rama <andhitia.r@gmail.com>
- Asrul Bastian Yunas <asrulbastianyunas@gmail.com>
Maintainer
This module is maintained by the PT. Simetri Sinergi Indonesia.
Please log in to comment on this module