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:
Clone the branch 15.0 of the repository https://github.com/simetri-sinergi-id/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 Policy 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>
Maintainer
This module is maintained by the PT. Simetri Sinergi Indonesia.
Metadata
Release files for odoo-addon-ssi-policy-mixin 15.0.1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| odoo_addon_ssi_policy_mixin-15.0.1.1.0-py3-none-any.whl | Python 3 | none | any | Details for odoo_addon_ssi_policy_mixin-15.0.1.1.0-py3-none-any.whl |
Release files / odoo_addon_ssi_policy_mixin-15.0.1.1.0-py3-none-any.whl
| Download URL | odoo_addon_ssi_policy_mixin-15.0.1.1.0-py3-none-any.whl |
|---|---|
| Size | 65.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3b2fa737566d4a8be8e96c8a4c86f530b5c646cc2e72b1e495a091b24e593519
|
|
BLAKE2b-256 checksum How to use checksums |
3ef08cefeef04b43b01a5830045111eefab6dd413af95cef2afe7dfd445fd922
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for odoo-addon-ssi-policy-mixin 15.0.1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.