OCA's Partner Autocomplete
partner_autocomplete_oca · OCA/l10n-finland
Health
64/100
fair
-
Security19/252 minor findings
-
Activity25/25Last human commit 5 months ago
-
Required by15/251 module depends on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.05 MB
Module directory on disk
Code analysis
2 migration notes
3 models
3 views
1 HTTP endpoint
Migration considerations
AutocompleteBackend— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceAutocompleteCountryEnvironment— 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
Note on Compatibility: The Odoo official Partner Autocomplete module (partner_autocomplete) will override the functionality of this module if installed.
Dependencies
- Odoo dependencies
- Python dependencies
- requests, cachetools
- System dependencies
- None
- Required by
- l10n_fi_partner_autocomplete_oca_opendata
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 |
|---|---|---|---|---|
view_autocomplete_backend_form |
autocomplete.backend.form | autocomplete.backend | form | New |
view_autocomplete_backend_tree |
autocomplete.backend.tree | autocomplete.backend | list | New |
view_partner_form_inherit_partner_autocomplete_oca |
view.partner.form.inherit.partner.autocomplete.oca | res.partner | form | Inherits base.view_partner_form |
HTTP endpoints 1
| Route(s) | Handler | Auth | Type | Methods | Flags |
|---|---|---|---|---|---|
/partner_autocomplete_oca/search_company_data |
OCAAutocompleteController.search_company_data |
user | json | POST | sudo |
Models touched 3
New fields (8)
-
api_keyCharstring='Api Key' -
available_country_idsMany2many → res.countrycompute='_compute_available_countries'store=Falsestring='Available Countries' args: 'res.country' -
company_idMany2one → res.companycomodel_name='res.company'default=<expr>help='The Company associated with this Autocomplete Backend.'required=Truestring='Company' -
country_environment_idMany2one → autocomplete.country.environmentdomain="[('country_id', '=', default_country_id)]"help='Select the data environment available for the chosen country.'required=Truestring='Environment Type' args: 'autocomplete.country.environment' -
default_country_idMany2one → res.countrycomodel_name='res.country'domain="[('id', 'in', available_country_ids)]"help='The specific country configured for this Autocomplete backend. The backend will only return results relevant to this country.'required=Truestring='Country' -
environment_type_codeSelectionreadonly=Truerelated='country_environment_id.environment_type'string='Environment Type Code' -
is_country_activeBooleandefault=Falsehelp="Sets this backend as the default fallback for OCA's Partner Autocomplete. If no country is specified in the search, this value will be used instead. Only one backend can be set as the active default at any time."string='Default' -
nameCharhelp='Differentiate between your Connections saved in Odoo.'string='Name'
-
init(self)
New fields (4)
-
country_idMany2one → res.countryondelete='cascade'required=Truestring='Country' args: 'res.country' -
display_nameCharcompute='_compute_display_name'store=True -
environment_typeSelectionrequired=Truestring='Environment Type' args: [('free', 'Free: Open Data'), ('paid', "Paid: IODO's Data")] -
sequenceIntegerdefault=10
No public methods.
New fields (0)
No new fields.
Public methods (1)-
button_immediate_install(self)