Skip to main content

Many2one Configurator Mixin

Project description

License: AGPL-3

Many2one Configurator Mixin

ssi_m2o_configurator_mixin provides an abstract Odoo model — mixin.many2one_configurator — that implements a three-strategy runtime filter for Many2one fields.

The three strategies are:

  • manual — the allowed records are selected explicitly by the user.

  • domain — a domain string (evaluated with safe_eval) determines which records are allowed.

  • code — arbitrary Python code is evaluated in a local dictionary (env, document) and must assign a recordset to result.

Concrete configurator models inherit this mixin and expose the strategy fields to end users, enabling dynamic Many2one filtering without hard-coded domains.

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 Many2one Configurator 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_m2o_configurator_mixin-14.0.2.1.1.dev2-py3-none-any.whl.

File metadata

File hashes

Hashes for odoo14_addon_ssi_m2o_configurator_mixin-14.0.2.1.1.dev2-py3-none-any.whl
Algorithm Hash digest
SHA256 a1b687c2f821783ede4309d392ca21895f7bc620c05d850e9a67d73162555bd1
MD5 b76e8a24709488a12fbb723d4c1eab21
BLAKE2b-256 c79dc3b63c379d645dd30014f36c73fe5e4633b2b30eacf08b81f114d831d46a

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