| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-attribute |
| GIT | |
| GIT | https://github.com/OCA/product-attribute.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-attribute/tree/16.0/product_country_restriction |
| VERSION | |
| VERSION | 1.0.1 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), ACSONE SA/NV |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), ACSONE SA/NV |
| COMMITTERS | |
| COMMITTERS | Weblate, OCA-git-bot, oca-ci, Xavier Bouquiaux, valentinagiuliani-rapsodoo |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/product-attribute |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:53:48 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - base - product - base_setup - web - bus - web_tour - uom |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| 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 | field | Inherits base.view_country_form |
view_partner_form |
res.partner.form | res.partner | xpath | Inherits base.view_partner_form |
No new fields.
Public methods (0)No public methods.
active
Boolean
copy=False
default=True
company_id
Many2one → res.company
comodel_name='res.company'
default=<expr>
string='Company'
country_group_ids
Many2many → res.country.group
column1='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_ids
Many2many → res.country
column1='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_ids
One2many → product.country.restriction.item
comodel_name='product.country.restriction.item'
inverse_name='restriction_id'
string='Country Restriction Items'
name
Char
required=True
translate=True
resulting_country_ids
Many2many → res.country
comodel_name='res.country'
compute='_compute_resulting_country_ids'
readonly=True
sequence
Integer
default=10
No public methods.
end_date
Date
name
Char
compute='_compute_name'
index=True
store=True
product_category_id
Many2one → product.category
comodel_name='product.category'
index=True
ondelete='cascade'
string='Product Category'
product_id
Many2one → product.product
comodel_name='product.product'
index=True
ondelete='cascade'
string='Variant'
product_template_id
Many2one → product.template
comodel_name='product.template'
index=True
ondelete='cascade'
string='Product'
restriction_id
Many2one → product.country.restriction
comodel_name='product.country.restriction'
index=True
ondelete='cascade'
rule_code
Char
readonly=True
related='rule_id.code'
rule_id
Many2one → product.country.restriction.rule
comodel_name='product.country.restriction.rule'
ondelete='restrict'
required=True
string='Rule'
sequence
Integer
default=10
start_date
Date
No public methods.
code
Char
required=True
name
Char
required=True
translate=True
sequence
Integer
default=10
No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
country_restriction_id
Many2one → product.country.restriction
comodel_name='product.country.restriction'
country_restriction_strategy
Selection
default=<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.
product_country_restriction_count
Integer
compute='_compute_product_country_restriction_count'
readonly=True
product_country_restriction_ids
Many2many → product.country.restriction
comodel_name='product.country.restriction'
compute='_compute_product_country_restriction_ids'
action_view_country_restrictions(self)
country_restriction_id
Many2one → product.country.restriction
comodel_name='product.country.restriction'
default=<expr>
string='Country Restriction'
No public methods.
| REPOSITORY | |
|---|---|
| REPOSITORY | OCA/product-attribute |
| GIT | |
| GIT | https://github.com/OCA/product-attribute.git |
| GIT FOLDER | |
| GIT FOLDER | https://github.com/OCA/product-attribute/tree/10.0/product_country_restriction |
| VERSION | |
| VERSION | 1.1.1 |
| CATEGORY | |
| CATEGORY | Uncategorized |
| LICENSE | |
| LICENSE | AGPL-3 |
| APPLICATION | |
| APPLICATION | No |
| AUTO-INSTALLABLE | |
| AUTO-INSTALLABLE | No |
| AUTHORS | |
| AUTHORS | Odoo Community Association (OCA), ACSONE SA/NV |
| MAINTAINERS | |
| MAINTAINERS | Odoo Community Association (OCA), ACSONE SA/NV |
| COMMITTERS | |
| COMMITTERS | Denis Roussel, oca-travis, OCA-git-bot |
| WEBSITE | |
| WEBSITE | https://github.com/OCA/product-attribute |
| LAST TRACKING UPDATE | |
| LAST TRACKING UPDATE | 2026-07-06 00:19:57 |
| ODOO DEPENDENCIES | |
| ODOO DEPENDENCIES |
odoo/odoo: - base - product - decimal_precision - base_setup - web_kanban - web - bus - web_tour - report |
| PYTHON DEPENDENCIES | |
| PYTHON DEPENDENCIES | Not have |
| SYSTEM DEPENDENCIES | |
| SYSTEM DEPENDENCIES | Not have |
| DESCRIPTION | |
| DESCRIPTION | |
| 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 | field | Inherits base.view_country_form |
view_partner_form |
res.partner.form | res.partner | xpath | Inherits base.view_partner_form |
No new fields.
Public methods (0)No public methods.
active
Boolean
copy=False
default=True
company_id
Many2one → res.company
comodel_name='res.company'
default=<expr>
string='Company'
country_group_ids
Many2many → res.country.group
column1='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_ids
Many2many → res.country
column1='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_ids
One2many → product.country.restriction.item
comodel_name='product.country.restriction.item'
inverse_name='restriction_id'
string='Country Restriction Items'
name
Char
required=True
translate=True
resulting_country_ids
Many2many → res.country
comodel_name='res.country'
compute='_compute_resulting_country_ids'
readonly=True
sequence
Integer
default=10
No public methods.
end_date
Date
name
Char
compute='_compute_name'
index=True
store=True
product_category_id
Many2one → product.category
comodel_name='product.category'
index=True
ondelete='cascade'
string='Product Category'
product_id
Many2one → product.product
comodel_name='product.product'
index=True
ondelete='cascade'
string='Variant'
product_template_id
Many2one → product.template
comodel_name='product.template'
index=True
ondelete='cascade'
string='Product'
restriction_id
Many2one → product.country.restriction
comodel_name='product.country.restriction'
index=True
ondelete='cascade'
rule_code
Char
readonly=True
related='rule_id.code'
rule_id
Many2one → product.country.restriction.rule
comodel_name='product.country.restriction.rule'
ondelete='restrict'
required=True
string='Rule'
sequence
Integer
default=10
start_date
Date
No public methods.
code
Char
required=True
name
Char
required=True
translate=True
sequence
Integer
default=10
No public methods.
No new fields.
Public methods (0)No public methods.
No new fields.
Public methods (0)No public methods.
country_restriction_strategy
Selection
default=<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>
default_country_restriction_id
Many2one → product.country.restriction
comodel_name='product.country.restriction'
No public methods.
product_country_restriction_count
Integer
compute='_compute_product_country_restriction_count'
readonly=True
product_country_restriction_ids
Many2many → product.country.restriction
comodel_name='product.country.restriction'
compute='_compute_product_country_restriction_ids'
action_view_country_restrictions(self)
country_restriction_id
Many2one → product.country.restriction
comodel_name='product.country.restriction'
default=<expr>
string='Country Restriction'
No public methods.