odoo-addon-stock-inventory-lockdown 16.0.1.0.0.8__py3-none-any.whl → 18.0.1.0.0.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- odoo/addons/stock_inventory_lockdown/README.rst +26 -23
- odoo/addons/stock_inventory_lockdown/__manifest__.py +1 -1
- odoo/addons/stock_inventory_lockdown/i18n/stock_inventory_lockdown.pot +1 -4
- odoo/addons/stock_inventory_lockdown/models/stock_location.py +8 -4
- odoo/addons/stock_inventory_lockdown/models/stock_move_line.py +2 -2
- odoo/addons/stock_inventory_lockdown/readme/CONTRIBUTORS.md +10 -0
- odoo/addons/stock_inventory_lockdown/readme/USAGE.md +5 -0
- odoo/addons/stock_inventory_lockdown/static/description/index.html +12 -11
- odoo/addons/stock_inventory_lockdown/tests/test_stock_inventory_lockdown.py +9 -4
- {odoo_addon_stock_inventory_lockdown-16.0.1.0.0.8.dist-info → odoo_addon_stock_inventory_lockdown-18.0.1.0.0.2.dist-info}/METADATA +33 -30
- {odoo_addon_stock_inventory_lockdown-16.0.1.0.0.8.dist-info → odoo_addon_stock_inventory_lockdown-18.0.1.0.0.2.dist-info}/RECORD +14 -14
- {odoo_addon_stock_inventory_lockdown-16.0.1.0.0.8.dist-info → odoo_addon_stock_inventory_lockdown-18.0.1.0.0.2.dist-info}/WHEEL +1 -1
- odoo_addon_stock_inventory_lockdown-18.0.1.0.0.2.dist-info/top_level.txt +1 -0
- odoo/addons/stock_inventory_lockdown/readme/CONTRIBUTORS.rst +0 -8
- odoo/addons/stock_inventory_lockdown/readme/USAGE.rst +0 -7
- odoo_addon_stock_inventory_lockdown-16.0.1.0.0.8.dist-info/top_level.txt +0 -1
- /odoo/addons/stock_inventory_lockdown/readme/{DESCRIPTION.rst → DESCRIPTION.md} +0 -0
|
@@ -7,7 +7,7 @@ Inventory Lock Down
|
|
|
7
7
|
!! This file is generated by oca-gen-addon-readme !!
|
|
8
8
|
!! changes will be overwritten. !!
|
|
9
9
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
10
|
-
!! source digest: sha256:
|
|
10
|
+
!! source digest: sha256:9ea659d838a25becdb6d199acd9b1615878f9998d8bf15493c2319060de193c5
|
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
12
12
|
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -17,13 +17,13 @@ Inventory Lock Down
|
|
|
17
17
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
18
18
|
:alt: License: AGPL-3
|
|
19
19
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
|
|
20
|
-
:target: https://github.com/OCA/stock-logistics-warehouse/tree/
|
|
20
|
+
:target: https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_inventory_lockdown
|
|
21
21
|
:alt: OCA/stock-logistics-warehouse
|
|
22
22
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
23
|
-
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-
|
|
23
|
+
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-18-0/stock-logistics-warehouse-18-0-stock_inventory_lockdown
|
|
24
24
|
:alt: Translate me on Weblate
|
|
25
25
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
26
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=
|
|
26
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=18.0
|
|
27
27
|
:alt: Try me on Runboat
|
|
28
28
|
|
|
29
29
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
@@ -38,13 +38,13 @@ This module lets you lock down the locations during an inventory.
|
|
|
38
38
|
Usage
|
|
39
39
|
=====
|
|
40
40
|
|
|
41
|
-
While an inventory is in the state "In progress", no stock moves
|
|
42
|
-
|
|
43
|
-
message.
|
|
44
|
-
Creating or modifying locations is also forbidden.
|
|
41
|
+
While an inventory is in the state "In progress", no stock moves can be
|
|
42
|
+
recorded in/out of the inventory's location: users will get an error
|
|
43
|
+
message. Creating or modifying locations is also forbidden.
|
|
45
44
|
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
|image1|
|
|
46
|
+
|
|
47
|
+
.. |image1| image:: https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/18.0/stock_inventory_lockdown/static/images/move_error.png
|
|
48
48
|
|
|
49
49
|
Bug Tracker
|
|
50
50
|
===========
|
|
@@ -52,7 +52,7 @@ Bug Tracker
|
|
|
52
52
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
|
|
53
53
|
In case of trouble, please check there if your issue has already been reported.
|
|
54
54
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
55
|
-
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%0Aversion:%
|
|
55
|
+
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
56
56
|
|
|
57
57
|
Do not contact contributors directly about support or help with technical issues.
|
|
58
58
|
|
|
@@ -60,25 +60,28 @@ Credits
|
|
|
60
60
|
=======
|
|
61
61
|
|
|
62
62
|
Authors
|
|
63
|
-
|
|
63
|
+
-------
|
|
64
64
|
|
|
65
65
|
* Numérigraphe
|
|
66
66
|
* ForgeFlow
|
|
67
67
|
|
|
68
68
|
Contributors
|
|
69
|
-
|
|
69
|
+
------------
|
|
70
|
+
|
|
71
|
+
- Loïc Bellier (Numérigraphe) <lb@numerigraphe.com>
|
|
72
|
+
- Lionel Sausin (Numérigraphe) <ls@numerigraphe.com>
|
|
73
|
+
- Laetitia Gangloff (Acsone) <laetitia.gangloff@acsone.eu>
|
|
74
|
+
- Laurent Mignon (Acsone) <laurent.mignon@acsone.eu>
|
|
75
|
+
- Lois Rilo (ForgeFlow) <lois.rilo@forgeflow.com>
|
|
76
|
+
- Jordi Ballester (ForgeFlow) <jordi.ballester@forgeflow.com>
|
|
77
|
+
- Michael Allen <mallen@opensourceintegrators.com>
|
|
78
|
+
- Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
|
79
|
+
- `Trobz <https://trobz.com>`__:
|
|
70
80
|
|
|
71
|
-
|
|
72
|
-
* Lionel Sausin (Numérigraphe) <ls@numerigraphe.com>
|
|
73
|
-
* Laetitia Gangloff (Acsone) <laetitia.gangloff@acsone.eu>
|
|
74
|
-
* Laurent Mignon (Acsone) <laurent.mignon@acsone.eu>
|
|
75
|
-
* Lois Rilo (ForgeFlow) <lois.rilo@forgeflow.com>
|
|
76
|
-
* Jordi Ballester (ForgeFlow) <jordi.ballester@forgeflow.com>
|
|
77
|
-
* Michael Allen <mallen@opensourceintegrators.com>
|
|
78
|
-
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
|
81
|
+
- Tuan Nguyen <tuanna@trobz.com>
|
|
79
82
|
|
|
80
83
|
Maintainers
|
|
81
|
-
|
|
84
|
+
-----------
|
|
82
85
|
|
|
83
86
|
This module is maintained by the OCA.
|
|
84
87
|
|
|
@@ -90,6 +93,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
|
90
93
|
mission is to support the collaborative development of Odoo features and
|
|
91
94
|
promote its widespread use.
|
|
92
95
|
|
|
93
|
-
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/
|
|
96
|
+
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_inventory_lockdown>`_ project on GitHub.
|
|
94
97
|
|
|
95
98
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{
|
|
5
5
|
"name": "Inventory Lock Down",
|
|
6
6
|
"summary": "Lock down stock locations during inventories.",
|
|
7
|
-
"version": "
|
|
7
|
+
"version": "18.0.1.0.0",
|
|
8
8
|
"development_status": "Beta",
|
|
9
9
|
"depends": ["stock", "stock_inventory"],
|
|
10
10
|
"author": "Numérigraphe, ForgeFlow, Odoo Community Association (OCA)",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
#
|
|
5
5
|
msgid ""
|
|
6
6
|
msgstr ""
|
|
7
|
-
"Project-Id-Version: Odoo Server
|
|
7
|
+
"Project-Id-Version: Odoo Server 18.0\n"
|
|
8
8
|
"Report-Msgid-Bugs-To: \n"
|
|
9
9
|
"Last-Translator: \n"
|
|
10
10
|
"Language-Team: \n"
|
|
@@ -16,8 +16,6 @@ msgstr ""
|
|
|
16
16
|
#. module: stock_inventory_lockdown
|
|
17
17
|
#. odoo-python
|
|
18
18
|
#: code:addons/stock_inventory_lockdown/models/stock_location.py:0
|
|
19
|
-
#: code:addons/stock_inventory_lockdown/models/stock_location.py:0
|
|
20
|
-
#, python-format
|
|
21
19
|
msgid "An inventory is being conducted at this location"
|
|
22
20
|
msgstr ""
|
|
23
21
|
|
|
@@ -34,7 +32,6 @@ msgstr ""
|
|
|
34
32
|
#. module: stock_inventory_lockdown
|
|
35
33
|
#. odoo-python
|
|
36
34
|
#: code:addons/stock_inventory_lockdown/models/stock_move_line.py:0
|
|
37
|
-
#, python-format
|
|
38
35
|
msgid ""
|
|
39
36
|
"Inventory adjustment underway at the following location(s):\n"
|
|
40
37
|
"- %(locations)s\n"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# © 2016 Numérigraphe SARL
|
|
2
2
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
3
3
|
|
|
4
|
-
from odoo import
|
|
4
|
+
from odoo import api, models
|
|
5
5
|
from odoo.exceptions import ValidationError
|
|
6
6
|
|
|
7
7
|
|
|
@@ -15,12 +15,16 @@ class StockLocation(models.Model):
|
|
|
15
15
|
"stock.inventory"
|
|
16
16
|
]._get_locations_open_inventories(vals)
|
|
17
17
|
if location_inventory_open_ids:
|
|
18
|
-
raise ValidationError(
|
|
18
|
+
raise ValidationError(
|
|
19
|
+
self.env._("An inventory is being conducted at this location")
|
|
20
|
+
)
|
|
19
21
|
|
|
20
22
|
def unlink(self):
|
|
21
23
|
location_inventory_open_ids = (
|
|
22
24
|
self.env["stock.inventory"].sudo()._get_locations_open_inventories(self.ids)
|
|
23
25
|
)
|
|
24
26
|
if location_inventory_open_ids:
|
|
25
|
-
raise ValidationError(
|
|
26
|
-
|
|
27
|
+
raise ValidationError(
|
|
28
|
+
self.env._("An inventory is being conducted at this location")
|
|
29
|
+
)
|
|
30
|
+
return super().unlink()
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
# (http://www.forgeflow.com)
|
|
4
4
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
|
5
5
|
|
|
6
|
-
from odoo import
|
|
6
|
+
from odoo import api, models
|
|
7
7
|
from odoo.exceptions import ValidationError
|
|
8
8
|
|
|
9
9
|
|
|
@@ -34,7 +34,7 @@ class StockMoveLine(models.Model):
|
|
|
34
34
|
):
|
|
35
35
|
location_names = locked_location_ids.mapped("complete_name")
|
|
36
36
|
raise ValidationError(
|
|
37
|
-
_(
|
|
37
|
+
self.env._(
|
|
38
38
|
"Inventory adjustment underway at the following "
|
|
39
39
|
"location(s):\n- %(locations)s\n Moving products to "
|
|
40
40
|
"or from these locations is not allowed until the "
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
- Loïc Bellier (Numérigraphe) \<<lb@numerigraphe.com>\>
|
|
2
|
+
- Lionel Sausin (Numérigraphe) \<<ls@numerigraphe.com>\>
|
|
3
|
+
- Laetitia Gangloff (Acsone) \<<laetitia.gangloff@acsone.eu>\>
|
|
4
|
+
- Laurent Mignon (Acsone) \<<laurent.mignon@acsone.eu>\>
|
|
5
|
+
- Lois Rilo (ForgeFlow) \<<lois.rilo@forgeflow.com>\>
|
|
6
|
+
- Jordi Ballester (ForgeFlow) \<<jordi.ballester@forgeflow.com>\>
|
|
7
|
+
- Michael Allen \<<mallen@opensourceintegrators.com>\>
|
|
8
|
+
- Bhavesh Odedra \<<bodedra@opensourceintegrators.com>\>
|
|
9
|
+
- [Trobz](https://trobz.com):
|
|
10
|
+
- Tuan Nguyen \<<tuanna@trobz.com>\>
|
|
@@ -367,9 +367,9 @@ ul.auto-toc {
|
|
|
367
367
|
!! This file is generated by oca-gen-addon-readme !!
|
|
368
368
|
!! changes will be overwritten. !!
|
|
369
369
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
370
|
-
!! source digest: sha256:
|
|
370
|
+
!! source digest: sha256:9ea659d838a25becdb6d199acd9b1615878f9998d8bf15493c2319060de193c5
|
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
372
|
-
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" 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 image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/
|
|
372
|
+
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" 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 image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/18.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 image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-warehouse-18-0/stock-logistics-warehouse-18-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 image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
373
373
|
<p>This module lets you lock down the locations during an inventory.</p>
|
|
374
374
|
<p><strong>Table of contents</strong></p>
|
|
375
375
|
<div class="contents local topic" id="contents">
|
|
@@ -386,20 +386,17 @@ ul.auto-toc {
|
|
|
386
386
|
</div>
|
|
387
387
|
<div class="section" id="usage">
|
|
388
388
|
<h1><a class="toc-backref" href="#toc-entry-1">Usage</a></h1>
|
|
389
|
-
<p>While an inventory is in the state “In progress”, no stock moves
|
|
390
|
-
|
|
391
|
-
message.
|
|
392
|
-
|
|
393
|
-
<div class="figure">
|
|
394
|
-
<img alt="Error message" src="https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/16.0/stock_inventory_lockdown/static/images/move_error.png" />
|
|
395
|
-
</div>
|
|
389
|
+
<p>While an inventory is in the state “In progress”, no stock moves can be
|
|
390
|
+
recorded in/out of the inventory’s location: users will get an error
|
|
391
|
+
message. Creating or modifying locations is also forbidden.</p>
|
|
392
|
+
<p><img alt="image1" src="https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/18.0/stock_inventory_lockdown/static/images/move_error.png" /></p>
|
|
396
393
|
</div>
|
|
397
394
|
<div class="section" id="bug-tracker">
|
|
398
395
|
<h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
|
|
399
396
|
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
|
|
400
397
|
In case of trouble, please check there if your issue has already been reported.
|
|
401
398
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
402
|
-
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%0Aversion:%
|
|
399
|
+
<a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
|
403
400
|
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
|
404
401
|
</div>
|
|
405
402
|
<div class="section" id="credits">
|
|
@@ -422,6 +419,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
422
419
|
<li>Jordi Ballester (ForgeFlow) <<a class="reference external" href="mailto:jordi.ballester@forgeflow.com">jordi.ballester@forgeflow.com</a>></li>
|
|
423
420
|
<li>Michael Allen <<a class="reference external" href="mailto:mallen@opensourceintegrators.com">mallen@opensourceintegrators.com</a>></li>
|
|
424
421
|
<li>Bhavesh Odedra <<a class="reference external" href="mailto:bodedra@opensourceintegrators.com">bodedra@opensourceintegrators.com</a>></li>
|
|
422
|
+
<li><a class="reference external" href="https://trobz.com">Trobz</a>:<ul>
|
|
423
|
+
<li>Tuan Nguyen <<a class="reference external" href="mailto:tuanna@trobz.com">tuanna@trobz.com</a>></li>
|
|
424
|
+
</ul>
|
|
425
|
+
</li>
|
|
425
426
|
</ul>
|
|
426
427
|
</div>
|
|
427
428
|
<div class="section" id="maintainers">
|
|
@@ -433,7 +434,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
|
|
433
434
|
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
434
435
|
mission is to support the collaborative development of Odoo features and
|
|
435
436
|
promote its widespread use.</p>
|
|
436
|
-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/
|
|
437
|
+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_inventory_lockdown">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
|
|
437
438
|
<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>
|
|
438
439
|
</div>
|
|
439
440
|
</div>
|
|
@@ -132,15 +132,18 @@ class StockInventoryLocationTest(TestStockCommon):
|
|
|
132
132
|
move1._action_confirm()
|
|
133
133
|
with self.assertRaises(ValidationError):
|
|
134
134
|
move1._action_assign()
|
|
135
|
-
move1.move_line_ids[0].
|
|
135
|
+
move1.move_line_ids[0].quantity = 10.0
|
|
136
|
+
move1.picked = True
|
|
136
137
|
move1._action_done()
|
|
138
|
+
|
|
137
139
|
move2 = self.create_stock_move(
|
|
138
140
|
self.productA, dest_id=self.inventory.location_ids.id
|
|
139
141
|
)
|
|
140
142
|
with self.assertRaises(ValidationError):
|
|
141
143
|
move2._action_confirm()
|
|
142
144
|
move2._action_assign()
|
|
143
|
-
move2.move_line_ids[0].
|
|
145
|
+
move2.move_line_ids[0].quantity = 10.0
|
|
146
|
+
move2.picked = True
|
|
144
147
|
move2._action_done()
|
|
145
148
|
|
|
146
149
|
def test_move_reserved_quants(self):
|
|
@@ -152,14 +155,16 @@ class StockInventoryLocationTest(TestStockCommon):
|
|
|
152
155
|
move1 = self.create_stock_move(self.productB, self.new_parent_location.id)
|
|
153
156
|
move1._action_confirm()
|
|
154
157
|
move1._action_assign()
|
|
155
|
-
move1.move_line_ids[0].
|
|
158
|
+
move1.move_line_ids[0].quantity = 10.0
|
|
159
|
+
move1.picked = True
|
|
156
160
|
move1._action_done()
|
|
157
161
|
self.assertEqual(move1.state, "done", "Move has not been completed")
|
|
158
162
|
move2 = self.create_stock_move(self.productA, self.new_parent_location.id)
|
|
159
163
|
move2._action_confirm()
|
|
160
164
|
with self.assertRaises(ValidationError):
|
|
161
165
|
move2._action_assign()
|
|
162
|
-
move2.move_line_ids[0].
|
|
166
|
+
move2.move_line_ids[0].quantity = 10.0
|
|
167
|
+
move2.picked = True
|
|
163
168
|
move2._action_done()
|
|
164
169
|
|
|
165
170
|
def test_unlink(self):
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-stock_inventory_lockdown
|
|
3
|
-
Version:
|
|
3
|
+
Version: 18.0.1.0.0.2
|
|
4
|
+
Requires-Python: >=3.10
|
|
5
|
+
Requires-Dist: odoo-addon-stock_inventory==18.0.*
|
|
6
|
+
Requires-Dist: odoo==18.0.*
|
|
4
7
|
Summary: Lock down stock locations during inventories.
|
|
5
8
|
Home-page: https://github.com/OCA/stock-logistics-warehouse
|
|
6
|
-
Author: Numérigraphe, ForgeFlow, Odoo Community Association (OCA)
|
|
7
|
-
Author-email: support@odoo-community.org
|
|
8
9
|
License: AGPL-3
|
|
10
|
+
Author: =?utf-8?q?Num=C3=A9rigraphe=2C_ForgeFlow=2C_Odoo_Community_Association_=28OCA=29?=
|
|
11
|
+
Author-email: support@odoo-community.org
|
|
9
12
|
Classifier: Programming Language :: Python
|
|
10
13
|
Classifier: Framework :: Odoo
|
|
11
|
-
Classifier: Framework :: Odoo ::
|
|
14
|
+
Classifier: Framework :: Odoo :: 18.0
|
|
12
15
|
Classifier: License :: OSI Approved :: GNU Affero General Public License v3
|
|
13
16
|
Classifier: Development Status :: 4 - Beta
|
|
14
|
-
Requires-Python: >=3.10
|
|
15
|
-
Requires-Dist: odoo-addon-stock-inventory<16.1dev,>=16.0dev
|
|
16
|
-
Requires-Dist: odoo<16.1dev,>=16.0a
|
|
17
17
|
|
|
18
18
|
===================
|
|
19
19
|
Inventory Lock Down
|
|
@@ -24,7 +24,7 @@ Inventory Lock Down
|
|
|
24
24
|
!! This file is generated by oca-gen-addon-readme !!
|
|
25
25
|
!! changes will be overwritten. !!
|
|
26
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
27
|
-
!! source digest: sha256:
|
|
27
|
+
!! source digest: sha256:9ea659d838a25becdb6d199acd9b1615878f9998d8bf15493c2319060de193c5
|
|
28
28
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
29
29
|
|
|
30
30
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -34,13 +34,13 @@ Inventory Lock Down
|
|
|
34
34
|
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
|
|
35
35
|
:alt: License: AGPL-3
|
|
36
36
|
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--warehouse-lightgray.png?logo=github
|
|
37
|
-
:target: https://github.com/OCA/stock-logistics-warehouse/tree/
|
|
37
|
+
:target: https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_inventory_lockdown
|
|
38
38
|
:alt: OCA/stock-logistics-warehouse
|
|
39
39
|
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
|
|
40
|
-
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-
|
|
40
|
+
:target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-18-0/stock-logistics-warehouse-18-0-stock_inventory_lockdown
|
|
41
41
|
:alt: Translate me on Weblate
|
|
42
42
|
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
|
|
43
|
-
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=
|
|
43
|
+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=18.0
|
|
44
44
|
:alt: Try me on Runboat
|
|
45
45
|
|
|
46
46
|
|badge1| |badge2| |badge3| |badge4| |badge5|
|
|
@@ -55,13 +55,13 @@ This module lets you lock down the locations during an inventory.
|
|
|
55
55
|
Usage
|
|
56
56
|
=====
|
|
57
57
|
|
|
58
|
-
While an inventory is in the state "In progress", no stock moves
|
|
59
|
-
|
|
60
|
-
message.
|
|
61
|
-
|
|
58
|
+
While an inventory is in the state "In progress", no stock moves can be
|
|
59
|
+
recorded in/out of the inventory's location: users will get an error
|
|
60
|
+
message. Creating or modifying locations is also forbidden.
|
|
61
|
+
|
|
62
|
+
|image1|
|
|
62
63
|
|
|
63
|
-
..
|
|
64
|
-
:alt: Error message
|
|
64
|
+
.. |image1| image:: https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/18.0/stock_inventory_lockdown/static/images/move_error.png
|
|
65
65
|
|
|
66
66
|
Bug Tracker
|
|
67
67
|
===========
|
|
@@ -69,7 +69,7 @@ Bug Tracker
|
|
|
69
69
|
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
|
|
70
70
|
In case of trouble, please check there if your issue has already been reported.
|
|
71
71
|
If you spotted it first, help us to smash it by providing a detailed and welcomed
|
|
72
|
-
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%0Aversion:%
|
|
72
|
+
`feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
|
|
73
73
|
|
|
74
74
|
Do not contact contributors directly about support or help with technical issues.
|
|
75
75
|
|
|
@@ -77,25 +77,28 @@ Credits
|
|
|
77
77
|
=======
|
|
78
78
|
|
|
79
79
|
Authors
|
|
80
|
-
|
|
80
|
+
-------
|
|
81
81
|
|
|
82
82
|
* Numérigraphe
|
|
83
83
|
* ForgeFlow
|
|
84
84
|
|
|
85
85
|
Contributors
|
|
86
|
-
|
|
86
|
+
------------
|
|
87
|
+
|
|
88
|
+
- Loïc Bellier (Numérigraphe) <lb@numerigraphe.com>
|
|
89
|
+
- Lionel Sausin (Numérigraphe) <ls@numerigraphe.com>
|
|
90
|
+
- Laetitia Gangloff (Acsone) <laetitia.gangloff@acsone.eu>
|
|
91
|
+
- Laurent Mignon (Acsone) <laurent.mignon@acsone.eu>
|
|
92
|
+
- Lois Rilo (ForgeFlow) <lois.rilo@forgeflow.com>
|
|
93
|
+
- Jordi Ballester (ForgeFlow) <jordi.ballester@forgeflow.com>
|
|
94
|
+
- Michael Allen <mallen@opensourceintegrators.com>
|
|
95
|
+
- Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
|
96
|
+
- `Trobz <https://trobz.com>`__:
|
|
87
97
|
|
|
88
|
-
|
|
89
|
-
* Lionel Sausin (Numérigraphe) <ls@numerigraphe.com>
|
|
90
|
-
* Laetitia Gangloff (Acsone) <laetitia.gangloff@acsone.eu>
|
|
91
|
-
* Laurent Mignon (Acsone) <laurent.mignon@acsone.eu>
|
|
92
|
-
* Lois Rilo (ForgeFlow) <lois.rilo@forgeflow.com>
|
|
93
|
-
* Jordi Ballester (ForgeFlow) <jordi.ballester@forgeflow.com>
|
|
94
|
-
* Michael Allen <mallen@opensourceintegrators.com>
|
|
95
|
-
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
|
98
|
+
- Tuan Nguyen <tuanna@trobz.com>
|
|
96
99
|
|
|
97
100
|
Maintainers
|
|
98
|
-
|
|
101
|
+
-----------
|
|
99
102
|
|
|
100
103
|
This module is maintained by the OCA.
|
|
101
104
|
|
|
@@ -107,6 +110,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
|
|
|
107
110
|
mission is to support the collaborative development of Odoo features and
|
|
108
111
|
promote its widespread use.
|
|
109
112
|
|
|
110
|
-
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/
|
|
113
|
+
This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/18.0/stock_inventory_lockdown>`_ project on GitHub.
|
|
111
114
|
|
|
112
115
|
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
odoo/addons/stock_inventory_lockdown/README.rst,sha256=
|
|
1
|
+
odoo/addons/stock_inventory_lockdown/README.rst,sha256=JB0taIukSYJ7kJkglvpXaVxPYjwmjEt0RTGlBNuc1_w,3847
|
|
2
2
|
odoo/addons/stock_inventory_lockdown/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
|
|
3
|
-
odoo/addons/stock_inventory_lockdown/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/stock_inventory_lockdown/__manifest__.py,sha256=7j-th8OZN4wZzqqWKz8L78oXvqqgJFmeuf3dAcOsalc,619
|
|
4
4
|
odoo/addons/stock_inventory_lockdown/i18n/ca.po,sha256=IH68yzG98H_52Xu-2HgDX5b3pKdCaWRKwwE_gtJpXRI,1498
|
|
5
5
|
odoo/addons/stock_inventory_lockdown/i18n/cs_CZ.po,sha256=sLYjKWHA27T57Ihnbytj--ive5sdonNslnpQImW16-A,1682
|
|
6
6
|
odoo/addons/stock_inventory_lockdown/i18n/de.po,sha256=2AxYzyiOW7QtmE9jboBX2-z2XWBXyvC9e4-fuy2Yi_I,1500
|
|
@@ -17,24 +17,24 @@ odoo/addons/stock_inventory_lockdown/i18n/pt.po,sha256=OYphptjZ0k6BFvrBdlSZWKI3U
|
|
|
17
17
|
odoo/addons/stock_inventory_lockdown/i18n/pt_BR.po,sha256=2jywWHpuvfOE8TvsY2qu5plBHYVQBj3EmnVRkXs4LsU,1735
|
|
18
18
|
odoo/addons/stock_inventory_lockdown/i18n/ro.po,sha256=Ti7BBLK8LE9XBshGTjWHPf7JuxFKO9q_f4HAlz5NsrE,1539
|
|
19
19
|
odoo/addons/stock_inventory_lockdown/i18n/sl.po,sha256=PsJy57tdP35j4nvo0fy-IxRy3cBjGjfa7GePcRSTaHg,1559
|
|
20
|
-
odoo/addons/stock_inventory_lockdown/i18n/stock_inventory_lockdown.pot,sha256=
|
|
20
|
+
odoo/addons/stock_inventory_lockdown/i18n/stock_inventory_lockdown.pot,sha256=6_d0vhR5Eni4HZvfOlK8X5pDPvktSj7bcp7DlQbjxE0,1338
|
|
21
21
|
odoo/addons/stock_inventory_lockdown/i18n/tr.po,sha256=7rCsSHEze53EfcPXU8U3DW69etf1h3Rhb0VAK2DccDk,1493
|
|
22
22
|
odoo/addons/stock_inventory_lockdown/i18n/tr_TR.po,sha256=SIZtDcauekL4cbvJPJYfhn8nJbiigJepLtAlNjmEQbg,1505
|
|
23
23
|
odoo/addons/stock_inventory_lockdown/i18n/vi_VN.po,sha256=XmZatN5toqEp3MknYg0koSJhD2Z4vTVBy7-9t7Wmtqo,1516
|
|
24
24
|
odoo/addons/stock_inventory_lockdown/i18n/zh_CN.po,sha256=liUFP4zyFhRQIoEc6vKb5QTUfZhe-IDfeTu2D8ZJ91A,1607
|
|
25
25
|
odoo/addons/stock_inventory_lockdown/models/__init__.py,sha256=87J0dFtUKv-T7ax1mh9fW9BvVL_-s6il6ZqzxrsNdx0,89
|
|
26
26
|
odoo/addons/stock_inventory_lockdown/models/stock_inventory.py,sha256=-afx0TfnrqtRZKcYN3EdjhHzZEjRUOaoGmQhN3rdXzg,1651
|
|
27
|
-
odoo/addons/stock_inventory_lockdown/models/stock_location.py,sha256=
|
|
28
|
-
odoo/addons/stock_inventory_lockdown/models/stock_move_line.py,sha256=
|
|
29
|
-
odoo/addons/stock_inventory_lockdown/readme/CONTRIBUTORS.
|
|
30
|
-
odoo/addons/stock_inventory_lockdown/readme/DESCRIPTION.
|
|
31
|
-
odoo/addons/stock_inventory_lockdown/readme/USAGE.
|
|
27
|
+
odoo/addons/stock_inventory_lockdown/models/stock_location.py,sha256=DxGWHRgEMXo88gErgrr4Z_c9Kxy9JKZda7YR79Z5ReE,1044
|
|
28
|
+
odoo/addons/stock_inventory_lockdown/models/stock_move_line.py,sha256=MFHBiKqaZgZbc0sLQHRf0q0VwkOCEgaBB20Ratm5Jkk,1708
|
|
29
|
+
odoo/addons/stock_inventory_lockdown/readme/CONTRIBUTORS.md,sha256=SObTgRlQI8zqGWCAcntnlNb-v9c9bRFNnSRP1fz1Lh4,537
|
|
30
|
+
odoo/addons/stock_inventory_lockdown/readme/DESCRIPTION.md,sha256=vj3-Zi4qbZH3eJSRp9Q3V12ObRJ9R5ffhbQW2BErhME,66
|
|
31
|
+
odoo/addons/stock_inventory_lockdown/readme/USAGE.md,sha256=48t8N-Pn0nr-BYf_GDKLNG2c_7EBRCDX5Q30j9a5zoQ,236
|
|
32
32
|
odoo/addons/stock_inventory_lockdown/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
33
|
-
odoo/addons/stock_inventory_lockdown/static/description/index.html,sha256=
|
|
33
|
+
odoo/addons/stock_inventory_lockdown/static/description/index.html,sha256=uXloHXkzpPSBj3rAjs0TZiJ4dqoB-UrBfKXlLRwsXDE,14160
|
|
34
34
|
odoo/addons/stock_inventory_lockdown/static/images/move_error.png,sha256=1RIf8PZqIgt-HZF4ojD39u-PO18KTmn4pxglXF1F7h0,11038
|
|
35
35
|
odoo/addons/stock_inventory_lockdown/tests/__init__.py,sha256=LrhHTdMsVInAJkpuSiHzXy-slKbz4UMwiPlwTO45q7U,44
|
|
36
|
-
odoo/addons/stock_inventory_lockdown/tests/test_stock_inventory_lockdown.py,sha256=
|
|
37
|
-
odoo_addon_stock_inventory_lockdown-
|
|
38
|
-
odoo_addon_stock_inventory_lockdown-
|
|
39
|
-
odoo_addon_stock_inventory_lockdown-
|
|
40
|
-
odoo_addon_stock_inventory_lockdown-
|
|
36
|
+
odoo/addons/stock_inventory_lockdown/tests/test_stock_inventory_lockdown.py,sha256=7egTPhGUuN8JO3ZeGByWViS92g8CJHy3mQR0_TLDa18,6590
|
|
37
|
+
odoo_addon_stock_inventory_lockdown-18.0.1.0.0.2.dist-info/METADATA,sha256=9bUuwNCri6E-UypvD8iUk9XLxVdyGWqUELqFjChuPBk,4529
|
|
38
|
+
odoo_addon_stock_inventory_lockdown-18.0.1.0.0.2.dist-info/WHEEL,sha256=9fEMia4zL7ZuZbnCOrcYogUhmn4XFIVaJ8G4YGI31xc,81
|
|
39
|
+
odoo_addon_stock_inventory_lockdown-18.0.1.0.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
40
|
+
odoo_addon_stock_inventory_lockdown-18.0.1.0.0.2.dist-info/RECORD,,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
odoo
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
* Loïc Bellier (Numérigraphe) <lb@numerigraphe.com>
|
|
2
|
-
* Lionel Sausin (Numérigraphe) <ls@numerigraphe.com>
|
|
3
|
-
* Laetitia Gangloff (Acsone) <laetitia.gangloff@acsone.eu>
|
|
4
|
-
* Laurent Mignon (Acsone) <laurent.mignon@acsone.eu>
|
|
5
|
-
* Lois Rilo (ForgeFlow) <lois.rilo@forgeflow.com>
|
|
6
|
-
* Jordi Ballester (ForgeFlow) <jordi.ballester@forgeflow.com>
|
|
7
|
-
* Michael Allen <mallen@opensourceintegrators.com>
|
|
8
|
-
* Bhavesh Odedra <bodedra@opensourceintegrators.com>
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
While an inventory is in the state "In progress", no stock moves
|
|
2
|
-
can be recorded in/out of the inventory's location: users will get an error
|
|
3
|
-
message.
|
|
4
|
-
Creating or modifying locations is also forbidden.
|
|
5
|
-
|
|
6
|
-
.. figure:: static/images/move_error.png
|
|
7
|
-
:alt: Error message
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
odoo
|
|
File without changes
|