Repository
OCA/product-attribute · module folder · Try on Runboat
Module version
1.0.0
Category
Uncategorized
Folder size
0.09 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/product-attribute
Last tracking update
2026-08-07 09:06:25
Authors
ACSONE SA/NV, Odoo Community Association (OCA), GRAP
Maintainers
ACSONE SA/NV, Odoo Community Association (OCA), GRAP
Committers
Weblate, OCA-git-bot, oca-ci, Bhavesh Heliconia
Odoo dependencies
odoo/odoo:
- web
- bus
- uom
Python dependencies
None
System dependencies
None
Required by
None
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>

Code Analysis

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…