TIP: You can type at any time to perform a new search.
Product Origin
product_origin · OCA/product-attribute
- 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
- 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 ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_idMany2one → res.countrycomodel_name='res.country'ondelete='restrict'string='Country of Origin' -
state_idMany2one → res.country.statecomodel_name='res.country.state'ondelete='restrict'string='Country State of Origin' -
state_id_domainBinarycompute='_compute_state_id_domain'help='Technical field, used to compute dynamically state domain depending on the country.'
-
onchange_country_id(self)@api.onchange('country_id') -
onchange_state_id(self)@api.onchange('state_id')
New fields (3)
-
country_idMany2one → res.countrycomodel_name='res.country'compute='_compute_country_id'inverse='_inverse_country_id'store=Truestring='Country of Origin' -
state_idMany2one → res.country.statecomodel_name='res.country.state'compute='_compute_state_id'inverse='_inverse_state_id'store=Truestring='Country State of Origin' -
state_id_domainBinarycompute='_compute_state_id_domain'help='Technical field, used to compute dynamically state domain depending on the country.'
-
onchange_country_id(self)@api.onchange('country_id') -
onchange_state_id(self)@api.onchange('state_id')
Loading…
Loading…
Loading…