Base External System
base_external_system · OCA/server-backend
OCA/server-tools 10.0 → OCA/server-backend 11.0–18.0
-
Security25/25No findings
-
Activity25/25Last human commit 6 months ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 7 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
Migration considerations
ExternalSystem— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
This module provides an interface/adapter mechanism for the definition of remote systems.
Note that this module stores everything in plain text. In the interest of security, it is recommended you use another module (such as keychain or red_october to encrypt things like the password and private key). This is not done here in order to not force a specific security method.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
external_system_view_form |
external.system.view.form | external.system | form | New |
external_system_view_list |
external.system.view.list | external.system | list | New |
external_system_view_search |
external.system.view.search | external.system | search | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 3
-
company_idsMany2many → res.companycomodel_name='res.company'default=<expr>help='Access to this system is restricted to these companies.'required=Truestring='Companies' -
fingerprintTexthelp='This is the fingerprint that is advertised by this system in order to validate its identity.' -
hostCharhelp='This is the domain or IP address that the system can be reached at.' -
ignore_fingerprintBooleandefault=Truehelp='Set this to `True` in order to ignore an invalid/unknown fingerprint from the system.' -
nameCharhelp='This is the canonical (humanized) name for the system.'required=True -
passwordCharhelp='This is the password that is used for authenticating to this system, if applicable.' -
portIntegerhelp='This is the port number that the system is listening on.' -
private_keyTexthelp='This is the private key that is used for authenticating to this system, if applicable.' -
private_key_passwordTexthelp='This is the password to unlock the private key that was provided for this sytem.' -
private_key_thumbprintTexthelp='The thumbprint generated by AAD when you upload your public cert' -
remote_pathCharhelp='Restrict to this directory path on the remote, if applicable.' -
schemeCharhelp='This is the protocol used to communicate with the system.' -
system_typeSelectionrequired=Trueselection=<expr> -
usernameCharhelp='This is the username that is used for authenticating to this system, if applicable.'
-
action_test_connection(self)Test the connection to the external system. Any unexpected exception will be transformed into a ValidationError. A ValidationError will also be raised if no client is returned. -
check_fingerprint_ignore_fingerprint(self)@api.constrains('fingerprint', 'ignore_fingerprint')Do not allow a blank fingerprint if not set to ignore. -
client(self)@contextmanagerClient object usable as a context manager to include destruction. Yields the result from ``external_get_client``, then calls ``external_destroy_client`` to cleanup the client. Yields: mixed: An object representing the client connection to the remote system.
No new fields.
Public methods (3)-
external_destroy_client(self, client)@api.modelPerform any logic necessary to destroy the client connection. Args: client (mixed): The client that was returned by ``external_get_client``. -
external_get_client(self)@api.modelReturn a usable client representing the remote system. -
get_system(self)Get system from environment.
No new fields.
Public methods (5)-
del_previous_dir(self)Get system from environment. -
external_destroy_client(self, client)@api.modelPerform any logic necessary to destroy the client connection. -
external_get_client(self)@api.modelReturn a usable client representing the remote system. -
get_previous_dir(self)Get previous_dir from adapter_memory. -
set_previous_dir(self, value)Store previous_dir in adapter_memor.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…