Skip to main content

Policy Mixin

Project description

License: AGPL-3

Policy Mixin

ssi_policy_mixin provides an abstract Odoo model — mixin.policy — that implements a policy-template mechanism for controlling which action buttons are available on a document at any given time.

Each inheriting model declares boolean policy fields (e.g. confirm_ok, cancel_ok) via _get_policy_field and links to a policy.template that evaluates Python conditions against the current record to set those fields automatically.

  • policy.template — master-data record holding Python evaluation code (matching criteria) and ordered detail lines.

  • policy.template.detail — maps a policy field to its computed value for records that match the template.

  • action_reload_policy_template — manually re-selects the active template based on the record’s current state.

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 Policy Mixin

  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_policy_mixin-14.0.1.4.1.dev1-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo14_addon_ssi_policy_mixin-14.0.1.4.1.dev1-py3-none-any.whl
Algorithm Hash digest
SHA256 196a90daa1e4ea418c93ae2fb7c40cd639a6a1e5cafccdd89053e9a328522e11
MD5 e2e65cd7750e138bd8fd6324a4284c75
BLAKE2b-256 05a81dc52c0dfb358816fed0ec73f1693a16002255237dbfb1a527c0ce0b7e66

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