Custom Date Field With Callable Attribute
by OpenSynergy Indonesia https://simetri-sinergi.id , PT. Simetri Sinergi Indonesia https://simetri-sinergi.id| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 22 |
| Technical Name |
ssi_field_date_callable_attribute |
| License | AGPL-3 |
| Website | https://simetri-sinergi.id |
Custom Date Field With Callable Attribute
ssi_field_date_callable_attribute provides a custom Odoo field class — DateCallable (exposed as fields.DateCallable) — that extends fields.Date to accept callable values for the readonly, required, string, and states attributes.
This allows those attributes to be set to @api.model methods on the model class so that subclasses can fully customise the field’s behaviour through class-level attribute overrides without redeclaring the field.
The field is primarily used by ssi_duration_mixin to provide fully configurable date_start / date_end fields.
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 Custom Date Field With Callable Attribute
- 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
- Andhitia Rama <andhitia.r@gmail.com>
Maintainer
This module is maintained by the PT. Simetri Sinergi Indonesia.
Please log in to comment on this module