Skip to content
Health
80/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 6 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity25/25
    In 4 Odoo series since 16.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.09 MB
Module directory on disk
Code analysis 0 migration notes 2 models 4 views 0 HTTP endpoints

Description

This module adds a field to associate the country and state of origin of a product

https://en.wikipedia.org/wiki/Country_of_origin

Dependencies

Odoo dependencies
odoo/odoo:
- web
- bus
- uom
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 4

XML IDNameModelTypeStatus
product_template_form_view product.template form Inherits product.product_template_only_form_view
product_template_search_view product.template search Inherits product.product_template_search_view
view_product_product_form product.product form Inherits product.product_normal_form_view
view_product_product_form_variant product.product form Inherits product.product_variant_easy_edit_view

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 2

New fields (3)
  • country_id Many2one → res.country
    comodel_name='res.country' ondelete='restrict' string='Country of Origin'
  • state_id Many2one → res.country.state
    comodel_name='res.country.state' ondelete='restrict' string='Country State of Origin'
  • state_id_domain Binary
    compute='_compute_state_id_domain' help='Technical field, used to compute dynamically state domain depending on the country.'
Public methods (2)
  • onchange_country_id(self)
    @api.onchange('country_id')
  • onchange_state_id(self)
    @api.onchange('state_id')

New fields (3)
  • country_id Many2one → res.country
    comodel_name='res.country' compute='_compute_country_id' inverse='_inverse_country_id' store=True string='Country of Origin'
  • state_id Many2one → res.country.state
    comodel_name='res.country.state' compute='_compute_state_id' inverse='_inverse_state_id' store=True string='Country State of Origin'
  • state_id_domain Binary
    compute='_compute_state_id_domain' help='Technical field, used to compute dynamically state domain depending on the country.'
Public methods (2)
  • onchange_country_id(self)
    @api.onchange('country_id')
  • onchange_state_id(self)
    @api.onchange('state_id')

Loading…

Loading…

Loading…

Loading…