mirror of
https://github.com/OCA/stock-logistics-warehouse.git
synced 2025-01-21 14:27:28 +02:00
[12.0][MIG]stock_inventory_lockdown
This commit is contained in:
committed by
Ben Stannard
parent
d63b395418
commit
945a47a5a9
@@ -14,13 +14,13 @@ Inventory Lock Down
|
|||||||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
||||||
:alt: License: AGPL-3
|
:alt: License: AGPL-3
|
||||||
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
|
||||||
:target: https://github.com/OCA/stock-logistics-warehouse/tree/11.0/stock_inventory_lockdown
|
:target: https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_inventory_lockdown
|
||||||
:alt: OCA/stock-logistics-warehouse
|
:alt: OCA/stock-logistics-warehouse
|
||||||
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
||||||
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-11-0/stock-logistics-warehouse-11-0-stock_inventory_lockdown
|
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-12-0/stock-logistics-warehouse-12-0-stock_inventory_lockdown
|
||||||
:alt: Translate me on Weblate
|
:alt: Translate me on Weblate
|
||||||
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
|
||||||
:target: https://runbot.odoo-community.org/runbot/153/11.0
|
:target: https://runbot.odoo-community.org/runbot/153/12.0
|
||||||
:alt: Try me on Runbot
|
:alt: Try me on Runbot
|
||||||
|
|
||||||
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
||||||
@@ -40,7 +40,7 @@ can be recorded in/out of the inventory's location: users will get an error
|
|||||||
message.
|
message.
|
||||||
Creating or modifying locations is also forbidden.
|
Creating or modifying locations is also forbidden.
|
||||||
|
|
||||||
.. image:: https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/11.0/stock_inventory_lockdown/stock_inventory_lockdown/static/images/move_error.png
|
.. image:: https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/12.0/stock_inventory_lockdown/stock_inventory_lockdown/static/images/move_error.png
|
||||||
:alt: Error message
|
:alt: Error message
|
||||||
|
|
||||||
Bug Tracker
|
Bug Tracker
|
||||||
@@ -49,7 +49,7 @@ Bug Tracker
|
|||||||
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
|
||||||
In case of trouble, please check there if your issue has already been reported.
|
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
|
If you spotted it first, help us smashing it by providing a detailed and welcomed
|
||||||
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%0Aversion:%2012.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
||||||
|
|
||||||
Do not contact contributors directly about support or help with technical issues.
|
Do not contact contributors directly about support or help with technical issues.
|
||||||
|
|
||||||
@@ -71,6 +71,8 @@ Contributors
|
|||||||
* Laurent Mignon (Acsone) <laurent.mignon@acsone.eu>
|
* Laurent Mignon (Acsone) <laurent.mignon@acsone.eu>
|
||||||
* Lois Rilo (Eficent) <lois.rilo@eficent.com>
|
* Lois Rilo (Eficent) <lois.rilo@eficent.com>
|
||||||
* Jordi Ballester (Eficent) <jordi.ballester@eficent.com>
|
* Jordi Ballester (Eficent) <jordi.ballester@eficent.com>
|
||||||
|
* Michael Allen <mallen@opensourceintegrators.com>
|
||||||
|
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
||||||
|
|
||||||
Maintainers
|
Maintainers
|
||||||
~~~~~~~~~~~
|
~~~~~~~~~~~
|
||||||
@@ -85,6 +87,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|||||||
mission is to support the collaborative development of Odoo features and
|
mission is to support the collaborative development of Odoo features and
|
||||||
promote its widespread use.
|
promote its widespread use.
|
||||||
|
|
||||||
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/11.0/stock_inventory_lockdown>`_ project on GitHub.
|
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_inventory_lockdown>`_ project on GitHub.
|
||||||
|
|
||||||
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
||||||
|
|||||||
@@ -4,10 +4,11 @@
|
|||||||
{
|
{
|
||||||
"name": "Inventory Lock Down",
|
"name": "Inventory Lock Down",
|
||||||
"summary": "Lock down stock locations during inventories.",
|
"summary": "Lock down stock locations during inventories.",
|
||||||
"version": "11.0.1.0.0",
|
"version": "12.0.1.0.0",
|
||||||
"development_status": "Mature",
|
"development_status": "Mature",
|
||||||
"depends": ["stock"],
|
"depends": ["stock"],
|
||||||
"author": "Numérigraphe, Eficent, Odoo Community Association (OCA)",
|
"author": "Numérigraphe, Eficent, Odoo Community Association (OCA)",
|
||||||
|
"website": "https://github.com/OCA/stock-logistics-warehouse",
|
||||||
"category": "Warehouse Management",
|
"category": "Warehouse Management",
|
||||||
"images": [
|
"images": [
|
||||||
"images/move_error.png",
|
"images/move_error.png",
|
||||||
|
|||||||
@@ -4,3 +4,5 @@
|
|||||||
* Laurent Mignon (Acsone) <laurent.mignon@acsone.eu>
|
* Laurent Mignon (Acsone) <laurent.mignon@acsone.eu>
|
||||||
* Lois Rilo (Eficent) <lois.rilo@eficent.com>
|
* Lois Rilo (Eficent) <lois.rilo@eficent.com>
|
||||||
* Jordi Ballester (Eficent) <jordi.ballester@eficent.com>
|
* Jordi Ballester (Eficent) <jordi.ballester@eficent.com>
|
||||||
|
* Michael Allen <mallen@opensourceintegrators.com>
|
||||||
|
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
||||||
|
|||||||
@@ -3,13 +3,13 @@
|
|||||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||||
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
|
<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" />
|
||||||
<title>Inventory Lock Down</title>
|
<title>Inventory Lock Down</title>
|
||||||
<style type="text/css">
|
<style type="text/css">
|
||||||
|
|
||||||
/*
|
/*
|
||||||
:Author: David Goodger (goodger@python.org)
|
:Author: David Goodger (goodger@python.org)
|
||||||
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
|
:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $
|
||||||
:Copyright: This stylesheet has been placed in the public domain.
|
:Copyright: This stylesheet has been placed in the public domain.
|
||||||
|
|
||||||
Default cascading style sheet for the HTML output of Docutils.
|
Default cascading style sheet for the HTML output of Docutils.
|
||||||
@@ -37,14 +37,6 @@ table.borderless td, table.borderless th {
|
|||||||
.hidden {
|
.hidden {
|
||||||
display: none }
|
display: none }
|
||||||
|
|
||||||
.subscript {
|
|
||||||
vertical-align: sub;
|
|
||||||
font-size: smaller }
|
|
||||||
|
|
||||||
.superscript {
|
|
||||||
vertical-align: super;
|
|
||||||
font-size: smaller }
|
|
||||||
|
|
||||||
a.toc-backref {
|
a.toc-backref {
|
||||||
text-decoration: none ;
|
text-decoration: none ;
|
||||||
color: black }
|
color: black }
|
||||||
@@ -169,12 +161,12 @@ h2.subtitle {
|
|||||||
hr.docutils {
|
hr.docutils {
|
||||||
width: 75% }
|
width: 75% }
|
||||||
|
|
||||||
img.align-left, .figure.align-left, object.align-left, table.align-left {
|
img.align-left, .figure.align-left, object.align-left {
|
||||||
clear: left ;
|
clear: left ;
|
||||||
float: left ;
|
float: left ;
|
||||||
margin-right: 1em }
|
margin-right: 1em }
|
||||||
|
|
||||||
img.align-right, .figure.align-right, object.align-right, table.align-right {
|
img.align-right, .figure.align-right, object.align-right {
|
||||||
clear: right ;
|
clear: right ;
|
||||||
float: right ;
|
float: right ;
|
||||||
margin-left: 1em }
|
margin-left: 1em }
|
||||||
@@ -185,11 +177,6 @@ img.align-center, .figure.align-center, object.align-center {
|
|||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
table.align-center {
|
|
||||||
margin-left: auto;
|
|
||||||
margin-right: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.align-left {
|
.align-left {
|
||||||
text-align: left }
|
text-align: left }
|
||||||
|
|
||||||
@@ -207,15 +194,6 @@ div.align-right {
|
|||||||
/* div.align-center * { */
|
/* div.align-center * { */
|
||||||
/* text-align: left } */
|
/* text-align: left } */
|
||||||
|
|
||||||
.align-top {
|
|
||||||
vertical-align: top }
|
|
||||||
|
|
||||||
.align-middle {
|
|
||||||
vertical-align: middle }
|
|
||||||
|
|
||||||
.align-bottom {
|
|
||||||
vertical-align: bottom }
|
|
||||||
|
|
||||||
ol.simple, ul.simple {
|
ol.simple, ul.simple {
|
||||||
margin-bottom: 1em }
|
margin-bottom: 1em }
|
||||||
|
|
||||||
@@ -367,7 +345,7 @@ ul.auto-toc {
|
|||||||
!! This file is generated by oca-gen-addon-readme !!
|
!! This file is generated by oca-gen-addon-readme !!
|
||||||
!! changes will be overwritten. !!
|
!! changes will be overwritten. !!
|
||||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||||
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.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/11.0/stock_inventory_lockdown"><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-11-0/stock-logistics-warehouse-11-0-stock_inventory_lockdown"><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/11.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p>
|
<p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Mature" src="https://img.shields.io/badge/maturity-Mature-brightgreen.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_inventory_lockdown"><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_inventory_lockdown"><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 lets you lock down the locations during an inventory.</p>
|
<p>This module lets you lock down the locations during an inventory.</p>
|
||||||
<p><strong>Table of contents</strong></p>
|
<p><strong>Table of contents</strong></p>
|
||||||
<div class="contents local topic" id="contents">
|
<div class="contents local topic" id="contents">
|
||||||
@@ -388,14 +366,14 @@ ul.auto-toc {
|
|||||||
can be recorded in/out of the inventory’s location: users will get an error
|
can be recorded in/out of the inventory’s location: users will get an error
|
||||||
message.
|
message.
|
||||||
Creating or modifying locations is also forbidden.</p>
|
Creating or modifying locations is also forbidden.</p>
|
||||||
<img alt="Error message" src="https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/11.0/stock_inventory_lockdown/stock_inventory_lockdown/static/images/move_error.png" />
|
<img alt="Error message" src="https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/12.0/stock_inventory_lockdown/stock_inventory_lockdown/static/images/move_error.png" />
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="bug-tracker">
|
<div class="section" id="bug-tracker">
|
||||||
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
|
<h1><a class="toc-backref" href="#id2">Bug Tracker</a></h1>
|
||||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
|
<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.
|
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
|
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_inventory_lockdown%0Aversion:%2011.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%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>
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="credits">
|
<div class="section" id="credits">
|
||||||
@@ -416,6 +394,8 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||||||
<li>Laurent Mignon (Acsone) <<a class="reference external" href="mailto:laurent.mignon@acsone.eu">laurent.mignon@acsone.eu</a>></li>
|
<li>Laurent Mignon (Acsone) <<a class="reference external" href="mailto:laurent.mignon@acsone.eu">laurent.mignon@acsone.eu</a>></li>
|
||||||
<li>Lois Rilo (Eficent) <<a class="reference external" href="mailto:lois.rilo@eficent.com">lois.rilo@eficent.com</a>></li>
|
<li>Lois Rilo (Eficent) <<a class="reference external" href="mailto:lois.rilo@eficent.com">lois.rilo@eficent.com</a>></li>
|
||||||
<li>Jordi Ballester (Eficent) <<a class="reference external" href="mailto:jordi.ballester@eficent.com">jordi.ballester@eficent.com</a>></li>
|
<li>Jordi Ballester (Eficent) <<a class="reference external" href="mailto:jordi.ballester@eficent.com">jordi.ballester@eficent.com</a>></li>
|
||||||
|
<li>Michael Allen <<a class="reference external" href="mailto:mallen@opensourceintegrators.com">mallen@opensourceintegrators.com</a>></li>
|
||||||
|
<li>Bhavesh Odedra <<a class="reference external" href="mailto:bodedra@opensourceintegrators.com">bodedra@opensourceintegrators.com</a>></li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<div class="section" id="maintainers">
|
<div class="section" id="maintainers">
|
||||||
@@ -425,7 +405,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
|
|||||||
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
||||||
mission is to support the collaborative development of Odoo features and
|
mission is to support the collaborative development of Odoo features and
|
||||||
promote its widespread use.</p>
|
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/11.0/stock_inventory_lockdown">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
|
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/12.0/stock_inventory_lockdown">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>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -67,7 +67,7 @@ class StockInventoryLocationTest(TestStockCommon):
|
|||||||
for line in self.inventory.line_ids:
|
for line in self.inventory.line_ids:
|
||||||
self.assertNotEqual(line.product_id.with_context(
|
self.assertNotEqual(line.product_id.with_context(
|
||||||
location=line.location_id.id).qty_available, 42.0)
|
location=line.location_id.id).qty_available, 42.0)
|
||||||
self.inventory.action_done()
|
self.inventory.action_validate()
|
||||||
for line in self.inventory.line_ids:
|
for line in self.inventory.line_ids:
|
||||||
self.assertEqual(line.product_id.with_context(
|
self.assertEqual(line.product_id.with_context(
|
||||||
location=line.location_id.id).qty_available, 42.0)
|
location=line.location_id.id).qty_available, 42.0)
|
||||||
@@ -85,7 +85,7 @@ class StockInventoryLocationTest(TestStockCommon):
|
|||||||
'location_id': self.new_sublocation.id,
|
'location_id': self.new_sublocation.id,
|
||||||
'inventory_id': inventory_subloc.id})
|
'inventory_id': inventory_subloc.id})
|
||||||
self.assertTrue(inventory_subloc.line_ids)
|
self.assertTrue(inventory_subloc.line_ids)
|
||||||
inventory_subloc.action_done()
|
inventory_subloc.action_validate()
|
||||||
self.assertEqual(line.product_id.with_context(
|
self.assertEqual(line.product_id.with_context(
|
||||||
location=line.location_id.id).qty_available, 22.0)
|
location=line.location_id.id).qty_available, 22.0)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user