Skip to main content
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 15.0 of the repository https://github.com/simetri-sinergi-id/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.

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)

Table of built distributions (wheels) for odoo-addon-ssi-policy-mixin 15.0.1.1.0
File Interpreter ABI Platform
odoo_addon_ssi_policy_mixin-15.0.1.1.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

15.0.1.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page