Search 1.9 billion lines of Odoo code on GitHub

stock_move_location_dest_constraint_base

Author: Camptocamp, Odoo Community Association (OCA)
License: AGPL-3
Branch: 12.0
Repository: acsone/stock-logistics-warehouse
Dependencies: stock, and stock_putaway_rule
Languages: HTML (356, 70.9%), Python (68, 13.5%), XML (17, 3.4%), and reStructuredText (61, 12.2%)
Other branches: 12.0-add-stock_lot_account_tax-dro, 12.0-add-stock_production_lot_qty_form-dro, 12.0-add_weblate_status-dro, and 12.0-imp-travis-dro
Other repositories: BT-cserra/stock-logistics-warehouse, ComitorDevTeam/stock-logistics-warehouse, DinamicheAziendali/stock-logistics-warehouse, ERPLibre/stock-logistics-warehouse, ForgeFlow/stock-logistics-warehouse, Ingeos/stock-logistics-warehouse, KDenisNoah/stock-logistics-warehouse, KonaERP/stock-logistics-warehouse, LevelPrime/stock-logistics-warehouse, NeatNerdPrime/stock-logistics-warehouse, OCA/stock-logistics-warehouse, SerpentConsultingServices/stock-logistics-warehouse, TRESCLOUD/stock-logistics-warehouse, Tecnativa/stock-logistics-warehouse, Vauxoo/stock-logistics-warehouse, akretion/stock-logistics-warehouse, ansinaesmejor/stock-logistics-warehouse, asphaltzipper/stock-logistics-warehouse, brain-tec/stock-logistics-warehouse, camptocamp/stock-logistics-warehouse, digitalsatori/stock-logistics-warehouse, eLBati/stock-logistics-warehouse, enzymz/stock-logistics-warehouse, flotho/stock-logistics-warehouse, grindtildeath/stock-logistics-warehouse, guewen/stock-logistics-warehouse, jado95/stock-logistics-warehouse, khaungyemin/stock-logistics-warehouse, kitsotik/stock-logistics-warehouse, lkicska/stock-logistics-warehouse, mohannadjamalhadi/stock-logistics-warehouse, sunshineLhj/stock-logistics-warehouse, takobi-online/stock-logistics-warehouse, ursais/stock-logistics-warehouse, and xtendoo-corporation/stock-logistics-warehouse

<h1 class="title">Stock Move Location Dest Constraints Base</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Alpha" src="https://img.shields.io/badge/maturity-Alpha-red.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_move_location_dest_constraint_base"><img alt="OCA/stock-logistics-warehouse" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_move_location_dest_constraint_base"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/153/12.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>This module provides a base mechanism to constrain the selection of destination location on stock move lines. It also adds a checkbox 'Bypass constraints' on stock location to deactivate the checks implemented by installed modules.</p> <div class="admonition important"> <p class="first admonition-title">Important</p> <p class="last">This is an alpha version, the data model and design can change at any time without warning. Only for development or testing purpose, do not use in production. <a class="reference external" href="https://odoo-community.org/page/development-status">More details on development status</a></p> </div> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#configuration" id="id1">Configuration</a></li> <li><a class="reference internal" href="#usage" id="id2">Usage</a></li> <li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id5">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> </ul> </li> </ul> </div> <a name="configuration"></a> <h2><a class="toc-backref" href="#id1">Configuration</a></h2> <p>When installing the module, all the existing stock location will be set to bypass constraints. Therefore the user must manually activate the constraints on existing locations. However, any location created after the module installation will have the constraints activated as the flag will not be set to True automatically.</p> <a name="usage"></a> <h2><a class="toc-backref" href="#id2">Usage</a></h2> <p>To define new constraints on stock location, function <cite>check_move_dest_constraint</cite> on <cite>stock.location</cite> must be overriden to throw a ValidationError if the location is not allowed for selected product or stock move line.</p> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id3">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_move_location_dest_constraint_base%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id4">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id5">Authors</a></h3> <ul class="simple"> <li>Camptocamp</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id6">Contributors</a></h3> <ul class="simple"> <li>Akim Juillerat &lt;<a class="reference external" href="mailto:akim.juillerat&#64;camptocamp.com">akim.juillerat&#64;camptocamp.com</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id7">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_move_location_dest_constraint_base">OCA/stock-logistics-warehouse</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>