Many2one Configurator Mixin
Project description
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:
Clone the branch 14.0 of the repository https://github.com/open-synergy/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 Many2one Configurator 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
Andhitia Rama <andhitia.r@gmail.com>
Maintainer
This module is maintained by the PT. Simetri Sinergi Indonesia.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file odoo14_addon_ssi_m2o_configurator_mixin-14.0.2.1.1.dev2-py3-none-any.whl.
File metadata
- Download URL: odoo14_addon_ssi_m2o_configurator_mixin-14.0.2.1.1.dev2-py3-none-any.whl
- Upload date:
- Size: 54.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a1b687c2f821783ede4309d392ca21895f7bc620c05d850e9a67d73162555bd1
|
|
| MD5 |
b76e8a24709488a12fbb723d4c1eab21
|
|
| BLAKE2b-256 |
c79dc3b63c379d645dd30014f36c73fe5e4633b2b30eacf08b81f114d831d46a
|