TIP: You can type at any time to perform a new search.
Product Country Restriction
product_country_restriction · OCA/product-attribute
- Repository
- OCA/product-attribute · module folder · Try on Runboat
- Module version
- 1.0.1
- Category
- Uncategorized
- Folder size
- 0.14 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/product-attribute
- Last tracking update
- 2026-08-07 08:09:19
- Authors
- ACSONE SA/NV, Odoo Community Association (OCA)
- Maintainers
- ACSONE SA/NV, Odoo Community Association (OCA)
- Committers
- Weblate, OCA-git-bot, oca-ci, Xavier Bouquiaux, valentinagiuliani-rapsodoo
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- None
- Description
Code Analysis ⓘ
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…