Stock Location Product Restriction

stock_location_product_restriction
REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_location_product_restriction
VERSION
VERSION 1.2.2
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSLaurent Mignon (ACSONE), Denis Roussel, Weblate, OCA-git-bot, oca-ci, CristianoMafraJunior, Nicolas Delbovier
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:44
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - barcodes_gs1_nomenclature
    - barcodes
    - digest
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
stock_location_form_view stock.location.form (in stock_location_product_restriction) stock.location div Inherits stock.view_location_form
stock_location_search_view stock.location.search (in stock_location_product_restriction) stock.location filter Inherits stock.view_location_search
stock_location_tree_view stock.location.tree (in stock_location_unique_product) stock.location field Inherits stock.view_location_tree2
Models touched (2)

New fields (5)
  • has_restriction_violation Boolean
    compute='_compute_restriction_violation' recursive=True search='_search_has_restriction_violation'
  • parent_product_restriction Selection
    readonly=True recursive=True related='location_id.product_restriction' store=True string='Parent Location Product Restriction'
  • product_restriction Selection
    compute='_compute_product_restriction' default='any' help="If 'Same product' is selected the system will prevent to put items of different products into the same location." index=True recursive=True required=True selection=<expr> store=True
  • restriction_violation_message Char
    compute='_compute_restriction_violation' recursive=True
  • specific_product_restriction Selection
    default=False help='If specified the restriction specified will apply to the current location and all its children' selection=<expr>
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/stock-logistics-warehouse
GIT
GIThttps://github.com/OCA/stock-logistics-warehouse.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/stock-logistics-warehouse/tree/10.0/stock_location_product_restriction
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYUncategorized
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), ACSONE SA/NV
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), ACSONE SA/NV
COMMITTERS
COMMITTERSLaurent Mignon (ACSONE), Denis Roussel, oca-travis, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/stock-logistics-warehouse
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:19:55
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - web
    - bus
    - web_tour
    - report
    - procurement
    - barcodes
    - web_planner
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
stock_location_form_view stock.location.form (in stock_location_unique_product) stock.location div Inherits stock.view_location_form
stock_location_search_view stock.location.search (in stock_location_unique_product) stock.location filter Inherits stock.view_location_search
stock_location_tree_view stock.location.tree (in stock_location_unique_product) stock.location field Inherits stock.view_location_tree2
Models touched (2)

New fields (5)
  • has_restriction_violation Boolean
    compute='_compute_restriction_violation' search='_search_has_restriction_violation'
  • parent_product_restriction Selection
    readonly=True related='location_id.product_restriction' selection='_selection_product_restriction' store=True
  • product_restriction Selection
    compute='_compute_product_restriction' default='any' help="If 'Same product' is selected the system will prevent to put items of different products into the same location." index=True required=True selection='_selection_product_restriction' store=True string='Product restriction'
  • restriction_violation_message Char
    compute='_compute_restriction_violation'
  • specific_product_restriction Selection
    default=False help='If specified the restriction specified will apply to the current location and all its children' selection='_selection_product_restriction' string='Specific product restriction'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (1)
  • action_done(self)
    @api.multi