Stock Location Inactive

stock_location_inactive
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/7.0/stock_location_inactive
VERSION
VERSION 0.1
CATEGORY
CATEGORYOthers
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSSavoir-faire Linux
MAINTAINERS
MAINTAINERSSavoir-faire Linux
COMMITTERS
COMMITTERSAlexandre Fayolle, Maxime Chambreuil, EL HADJI DEM
WEBSITE
WEBSITEhttp://www.savoirfairelinux.com
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:13
ODOO DEPENDENCIES
ODOO DEPENDENCIES odoo/odoo:
    - stock
    - product
    - base
    - process
    - web
    - decimal_precision
    - mail
    - base_setup
    - web_kanban
    - account
    - analytic
    - board
    - edi
    - email_template
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
    This module allows you to check that:

    * a location is empty (no product)
    * a location has no active sub-locations

before setting it as inactive.

It also modify the Inventory Analysis report to hide inactive locations.

Contributors
------------
* Maxime Chambreuil (maxime.chambreuil@savoirfairelinux.com)
* El Hadji Dem (elhadji.dem@savoirfairelinux.com)

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
view_stock_location_active_form stock.location field Inherits stock.view_location_form
Models touched (3)

New fields (0)

No new fields.

Public methods (1)
  • init(self, cr)

New fields (0)

No new fields.

Public methods (2)
  • onchange_active_field(self, cr, uid, ids, active, context=None)
  • write(self, cr, uid, ids, vals, context=None)

New fields (0)

No new fields.

Public methods (1)
  • action_done(self, cr, uid, ids, context=None)
    Override the action_done to add constraint to check if the location_dest is disable