Product Country Restriction
product_country_restriction · OCA/product-attribute
Health
48/100
poor
-
Security25/25No findings
-
Activity6/25Last human commit 27 months ago
-
Required by5/250 modules depend on it
-
Maturity12/25In 2 Odoo series since 10.0
Heuristic over the facts below, not an audit · How it's computed
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.14 MB
Module directory on disk
Code analysis
5 migration notes
9 models
11 views
0 HTTP endpoints
Migration considerations
ProductCountryRestrictionRule— Migrating to 19.0: `_sql_constraints` is ignored and its constraints are silently not created: declare `models.Constraint` attributes instead. migration-sql-constraints · sourceproduct_country_restriction_item_form_view— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceproduct_country_restriction_item_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceproduct_country_restriction_rule_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · sourceproduct_country_restriction_tree_view— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 11
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
product_country_restriction_form_view |
product.country.restriction.form (in product_country_restriction) | product.country.restriction | form | New |
product_country_restriction_item_form_view |
product.country.restriction.item.form (in product_country_restriction) | product.country.restriction.item | form | New |
product_country_restriction_item_search_view |
product.country.restriction.item.search (in product_country_restriction) | product.country.restriction.item | search | New |
product_country_restriction_item_tree_view |
product.country.restriction.item.tree (in product_country_restriction) | product.country.restriction.item | tree | New |
product_country_restriction_rule_form_view |
product.country.restriction.rule.form (in product_country_restriction) | product.country.restriction.rule | form | New |
product_country_restriction_rule_search_view |
product.country.restriction.rule.search (in product_country_restriction) | product.country.restriction.rule | search | New |
product_country_restriction_rule_tree_view |
product.country.restriction.rule.tree (in product_country_restriction) | product.country.restriction.rule | tree | New |
product_country_restriction_search_view |
product.country.restriction.search (in product_country_restriction) | product.country.restriction | search | New |
product_country_restriction_tree_view |
product.country.restriction.tree (in product_country_restriction) | product.country.restriction | tree | New |
view_country_form |
res.country.form | res.country | form | Inherits base.view_country_form |
view_partner_form |
res.partner.form | res.partner | form | Inherits base.view_partner_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 9
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (8)
-
activeBooleancopy=Falsedefault=True -
company_idMany2one → res.companycomodel_name='res.company'default=<expr>string='Company' -
country_group_idsMany2many → res.country.groupcolumn1='restriction_id'column2='group_id'comodel_name='res.country.group'help='Fill in this if you want that retriction apply on these groups(in addition to particular countries).'relation='product_country_restriction_country_group_rel'string='Country Groups' -
country_idsMany2many → res.countrycolumn1='restriction_id'column2='country_id'comodel_name='res.country'help='Fill in this if you want that restriction apply on these(in addition to country groups).'relation='product_country_restriction_country_rel'string='Countries' -
item_idsOne2many → product.country.restriction.itemcomodel_name='product.country.restriction.item'inverse_name='restriction_id'string='Country Restriction Items' -
nameCharrequired=Truetranslate=True -
resulting_country_idsMany2many → res.countrycomodel_name='res.country'compute='_compute_resulting_country_ids'readonly=True -
sequenceIntegerdefault=10
No public methods.
New fields (10)
-
end_dateDate -
nameCharcompute='_compute_name'index=Truestore=True -
product_category_idMany2one → product.categorycomodel_name='product.category'index=Trueondelete='cascade'string='Product Category' -
product_idMany2one → product.productcomodel_name='product.product'index=Trueondelete='cascade'string='Variant' -
product_template_idMany2one → product.templatecomodel_name='product.template'index=Trueondelete='cascade'string='Product' -
restriction_idMany2one → product.country.restrictioncomodel_name='product.country.restriction'index=Trueondelete='cascade' -
rule_codeCharreadonly=Truerelated='rule_id.code' -
rule_idMany2one → product.country.restriction.rulecomodel_name='product.country.restriction.rule'ondelete='restrict'required=Truestring='Rule' -
sequenceIntegerdefault=10 -
start_dateDate
No public methods.
New fields (3)
-
codeCharrequired=True -
nameCharrequired=Truetranslate=True -
sequenceIntegerdefault=10
No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (2)
-
country_restriction_idMany2one → product.country.restrictioncomodel_name='product.country.restriction' -
country_restriction_strategySelectiondefault=<expr>help='Choose here how your country rules apply.[Authorize]: Authorize all products but those for which strategyapply.[Restrict]: Restrict all products but those for which strategy apply.'selection=<expr>
No public methods.
New fields (2)
-
product_country_restriction_countIntegercompute='_compute_product_country_restriction_count'readonly=True -
product_country_restriction_idsMany2many → product.country.restrictioncomodel_name='product.country.restriction'compute='_compute_product_country_restriction_ids'
-
action_view_country_restrictions(self)
New fields (1)
-
country_restriction_idMany2one → product.country.restrictioncomodel_name='product.country.restriction'default=<expr>string='Country Restriction'
No public methods.
Loading…
Loading…