OCA's Partner Autocomplete

partner_autocomplete_oca
REPOSITORY
REPOSITORYOCA/l10n-finland
GIT
GIThttps://github.com/OCA/l10n-finland.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-finland/tree/18.0/partner_autocomplete_oca
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYTools
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA) Finland
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA) Finland
COMMITTERS
COMMITTERSOCA-git-bot, jusle
WEBSITE
WEBSITE
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-05 23:09:30
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/connector:
    - connector
    - component
    - component_event
OCA/queue:
    - queue_job
odoo/odoo:
    - base
    - web
    - mail
    - base_setup
    - bus
    - web_tour
    - html_editor
    - base_sparse_field
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES requests
cachetools
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits base.view_partner_form
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)