Skip to main content

Custom Date Field With Callable Attribute

Project description

License: AGPL-3

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:

  1. Clone the branch 14.0 of the repository https://github.com/open-synergy/ssi-mixin

  2. Add the path to this repository in your configuration (addons-path)

  3. Update the module list (Must be on developer mode)

  4. Go to menu Apps -> Apps -> Main Apps

  5. Search For Custom Date Field With Callable Attribute

  6. 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

Maintainer

PT. Simetri Sinergi Indonesia

This module is maintained by the PT. Simetri Sinergi Indonesia.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

File details

Details for the file odoo14_addon_ssi_field_date_callable_attribute-14.0.1.1.1.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo14_addon_ssi_field_date_callable_attribute-14.0.1.1.1.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 9069df717f85027672a4cfcb799cab7525e5432b1475430298d4059be5d7e95c
MD5 50859f7ba736067b05a73a67144b7d64
BLAKE2b-256 95dcf99bf80d52df672aa98d13bb27de81b12349c799fc71fdc796d005138635

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page