Repository
OCA/l10n-finland · module folder · Try on Runboat
Module version
1.0.0
Category
Tools
Folder size
0.05 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-07 08:43:06
Authors
Odoo Community Association (OCA) Finland
Maintainers
Odoo Community Association (OCA) Finland
Committers
OCA-git-bot, jusle
Odoo dependencies
OCA/connector:
OCA/queue:
odoo/odoo:
- web
- bus
Python dependencies
requests, cachetools
System dependencies
None
Required by
l10n_fi_partner_autocomplete_oca_opendata
Description
Note on Compatibility: The Odoo official Partner Autocomplete module (partner_autocomplete) will override the functionality of this module if installed.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
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)HandlerAuthTypeMethodsFlags
/partner_autocomplete_oca/search_company_data OCAAutocompleteController.search_company_data user json POST sudo
Models touched (3)

New fields (8)
  • api_key Char
    string='Api Key'
  • available_country_ids Many2many → res.country
    compute='_compute_available_countries' store=False string='Available Countries' args: 'res.country'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> help='The Company associated with this Autocomplete Backend.' required=True string='Company'
  • country_environment_id Many2one → autocomplete.country.environment
    domain="[('country_id', '=', default_country_id)]" help='Select the data environment available for the chosen country.' required=True string='Environment Type' args: 'autocomplete.country.environment'
  • default_country_id Many2one → res.country
    comodel_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=True string='Country'
  • environment_type_code Selection
    readonly=True related='country_environment_id.environment_type' string='Environment Type Code'
  • is_country_active Boolean
    default=False help="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'
  • name Char
    help='Differentiate between your Connections saved in Odoo.' string='Name'
Public methods (1)
  • init(self)

New fields (4)
  • country_id Many2one → res.country
    ondelete='cascade' required=True string='Country' args: 'res.country'
  • display_name Char
    compute='_compute_display_name' store=True
  • environment_type Selection
    required=True string='Environment Type' args: [('free', 'Free: Open Data'), ('paid', "Paid: IODO's Data")]
  • sequence Integer
    default=10
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • button_immediate_install(self)