odoo-addon-stock-inventory-lockdown 16.0.1.0.0.8__py3-none-any.whl → 19.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.
@@ -1,3 +1,7 @@
1
+ .. image:: https://odoo-community.org/readme-banner-image
2
+ :target: https://odoo-community.org/get-involved?utm_source=readme
3
+ :alt: Odoo Community Association
4
+
1
5
  ===================
2
6
  Inventory Lock Down
3
7
  ===================
@@ -7,23 +11,23 @@ Inventory Lock Down
7
11
  !! This file is generated by oca-gen-addon-readme !!
8
12
  !! changes will be overwritten. !!
9
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:babaf62e88e317c7456236551ea3ca7c5620730997acea8fbf6e8c4fa3c9ccc0
14
+ !! source digest: sha256:b263d0b33007a09443ecb6e447f45fb0361e3fa2093bc32511b6cf7faee28304
11
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
16
 
13
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14
18
  :target: https://odoo-community.org/page/development-status
15
19
  :alt: Beta
16
- .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
20
+ .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
17
21
  :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18
22
  :alt: License: AGPL-3
19
23
  .. |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/16.0/stock_inventory_lockdown
24
+ :target: https://github.com/OCA/stock-logistics-warehouse/tree/19.0/stock_inventory_lockdown
21
25
  :alt: OCA/stock-logistics-warehouse
22
26
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23
- :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_inventory_lockdown
27
+ :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-19-0/stock-logistics-warehouse-19-0-stock_inventory_lockdown
24
28
  :alt: Translate me on Weblate
25
29
  .. |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=16.0
30
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=19.0
27
31
  :alt: Try me on Runboat
28
32
 
29
33
  |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -38,13 +42,13 @@ This module lets you lock down the locations during an inventory.
38
42
  Usage
39
43
  =====
40
44
 
41
- While an inventory is in the state "In progress", no stock moves
42
- can be recorded in/out of the inventory's location: users will get an error
43
- message.
44
- Creating or modifying locations is also forbidden.
45
+ While an inventory is in the state "In progress", no stock moves can be
46
+ recorded in/out of the inventory's location: users will get an error
47
+ message. Creating or modifying locations is also forbidden.
45
48
 
46
- .. figure:: https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/16.0/stock_inventory_lockdown/static/images/move_error.png
47
- :alt: Error message
49
+ |image1|
50
+
51
+ .. |image1| image:: https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/19.0/stock_inventory_lockdown/static/images/move_error.png
48
52
 
49
53
  Bug Tracker
50
54
  ===========
@@ -52,7 +56,7 @@ Bug Tracker
52
56
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
53
57
  In case of trouble, please check there if your issue has already been reported.
54
58
  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:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
59
+ `feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
56
60
 
57
61
  Do not contact contributors directly about support or help with technical issues.
58
62
 
@@ -60,25 +64,28 @@ Credits
60
64
  =======
61
65
 
62
66
  Authors
63
- ~~~~~~~
67
+ -------
64
68
 
65
69
  * Numérigraphe
66
70
  * ForgeFlow
67
71
 
68
72
  Contributors
69
- ~~~~~~~~~~~~
73
+ ------------
74
+
75
+ - Loïc Bellier (Numérigraphe) <lb@numerigraphe.com>
76
+ - Lionel Sausin (Numérigraphe) <ls@numerigraphe.com>
77
+ - Laetitia Gangloff (Acsone) <laetitia.gangloff@acsone.eu>
78
+ - Laurent Mignon (Acsone) <laurent.mignon@acsone.eu>
79
+ - Lois Rilo (ForgeFlow) <lois.rilo@forgeflow.com>
80
+ - Jordi Ballester (ForgeFlow) <jordi.ballester@forgeflow.com>
81
+ - Michael Allen <mallen@opensourceintegrators.com>
82
+ - Bhavesh Odedra <bodedra@opensourceintegrators.com>
83
+ - `Trobz <https://trobz.com>`__:
70
84
 
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>
85
+ - Tuan Nguyen <tuanna@trobz.com>
79
86
 
80
87
  Maintainers
81
- ~~~~~~~~~~~
88
+ -----------
82
89
 
83
90
  This module is maintained by the OCA.
84
91
 
@@ -90,6 +97,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
90
97
  mission is to support the collaborative development of Odoo features and
91
98
  promote its widespread use.
92
99
 
93
- This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_inventory_lockdown>`_ project on GitHub.
100
+ This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/19.0/stock_inventory_lockdown>`_ project on GitHub.
94
101
 
95
102
  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": "16.0.1.0.0",
7
+ "version": "19.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 16.0\n"
7
+ "Project-Id-Version: Odoo Server 19.0\n"
8
8
  "Report-Msgid-Bugs-To: \n"
9
9
  "Last-Translator: \n"
10
10
  "Language-Team: \n"
@@ -16,11 +16,23 @@ 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
 
22
+ #. module: stock_inventory_lockdown
23
+ #: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_inventory__display_name
24
+ #: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_location__display_name
25
+ #: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_move_line__display_name
26
+ msgid "Display Name"
27
+ msgstr ""
28
+
29
+ #. module: stock_inventory_lockdown
30
+ #: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_inventory__id
31
+ #: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_location__id
32
+ #: model:ir.model.fields,field_description:stock_inventory_lockdown.field_stock_move_line__id
33
+ msgid "ID"
34
+ msgstr ""
35
+
24
36
  #. module: stock_inventory_lockdown
25
37
  #: model:ir.model,name:stock_inventory_lockdown.model_stock_inventory
26
38
  msgid "Inventory Adjustment Group"
@@ -34,7 +46,6 @@ msgstr ""
34
46
  #. module: stock_inventory_lockdown
35
47
  #. odoo-python
36
48
  #: code:addons/stock_inventory_lockdown/models/stock_move_line.py:0
37
- #, python-format
38
49
  msgid ""
39
50
  "Inventory adjustment underway at the following location(s):\n"
40
51
  "- %(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 _, api, models
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(_("An inventory is being conducted at this location"))
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(_("An inventory is being conducted at this location"))
26
- return super(StockLocation, self).unlink()
27
+ raise ValidationError( # pylint: disable=no-raise-unlink
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 _, api, models
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>\>
@@ -0,0 +1,5 @@
1
+ While an inventory is in the state "In progress", no stock moves can be
2
+ recorded in/out of the inventory's location: users will get an error
3
+ message. Creating or modifying locations is also forbidden.
4
+
5
+ ![](static/images/move_error.png)
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5
5
  <meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
6
- <title>Inventory Lock Down</title>
6
+ <title>README.rst</title>
7
7
  <style type="text/css">
8
8
 
9
9
  /*
@@ -360,16 +360,21 @@ ul.auto-toc {
360
360
  </style>
361
361
  </head>
362
362
  <body>
363
- <div class="document" id="inventory-lock-down">
364
- <h1 class="title">Inventory Lock Down</h1>
363
+ <div class="document">
365
364
 
365
+
366
+ <a class="reference external image-reference" href="https://odoo-community.org/get-involved?utm_source=readme">
367
+ <img alt="Odoo Community Association" src="https://odoo-community.org/readme-banner-image" />
368
+ </a>
369
+ <div class="section" id="inventory-lock-down">
370
+ <h1>Inventory Lock Down</h1>
366
371
  <!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
367
372
  !! This file is generated by oca-gen-addon-readme !!
368
373
  !! changes will be overwritten. !!
369
374
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:babaf62e88e317c7456236551ea3ca7c5620730997acea8fbf6e8c4fa3c9ccc0
375
+ !! source digest: sha256:b263d0b33007a09443ecb6e447f45fb0361e3fa2093bc32511b6cf7faee28304
371
376
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
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/16.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-16-0/stock-logistics-warehouse-16-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&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377
+ <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/license-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/stock-logistics-warehouse/tree/19.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-19-0/stock-logistics-warehouse-19-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&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373
378
  <p>This module lets you lock down the locations during an inventory.</p>
374
379
  <p><strong>Table of contents</strong></p>
375
380
  <div class="contents local topic" id="contents">
@@ -385,34 +390,31 @@ ul.auto-toc {
385
390
  </ul>
386
391
  </div>
387
392
  <div class="section" id="usage">
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
- can be recorded in/out of the inventory’s location: users will get an error
391
- message.
392
- Creating or modifying locations is also forbidden.</p>
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>
393
+ <h2><a class="toc-backref" href="#toc-entry-1">Usage</a></h2>
394
+ <p>While an inventory is in the state “In progress”, no stock moves can be
395
+ recorded in/out of the inventory’s location: users will get an error
396
+ message. Creating or modifying locations is also forbidden.</p>
397
+ <p><img alt="image1" src="https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/19.0/stock_inventory_lockdown/static/images/move_error.png" /></p>
396
398
  </div>
397
399
  <div class="section" id="bug-tracker">
398
- <h1><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h1>
400
+ <h2><a class="toc-backref" href="#toc-entry-2">Bug Tracker</a></h2>
399
401
  <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues">GitHub Issues</a>.
400
402
  In case of trouble, please check there if your issue has already been reported.
401
403
  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:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
404
+ <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
403
405
  <p>Do not contact contributors directly about support or help with technical issues.</p>
404
406
  </div>
405
407
  <div class="section" id="credits">
406
- <h1><a class="toc-backref" href="#toc-entry-3">Credits</a></h1>
408
+ <h2><a class="toc-backref" href="#toc-entry-3">Credits</a></h2>
407
409
  <div class="section" id="authors">
408
- <h2><a class="toc-backref" href="#toc-entry-4">Authors</a></h2>
410
+ <h3><a class="toc-backref" href="#toc-entry-4">Authors</a></h3>
409
411
  <ul class="simple">
410
412
  <li>Numérigraphe</li>
411
413
  <li>ForgeFlow</li>
412
414
  </ul>
413
415
  </div>
414
416
  <div class="section" id="contributors">
415
- <h2><a class="toc-backref" href="#toc-entry-5">Contributors</a></h2>
417
+ <h3><a class="toc-backref" href="#toc-entry-5">Contributors</a></h3>
416
418
  <ul class="simple">
417
419
  <li>Loïc Bellier (Numérigraphe) &lt;<a class="reference external" href="mailto:lb&#64;numerigraphe.com">lb&#64;numerigraphe.com</a>&gt;</li>
418
420
  <li>Lionel Sausin (Numérigraphe) &lt;<a class="reference external" href="mailto:ls&#64;numerigraphe.com">ls&#64;numerigraphe.com</a>&gt;</li>
@@ -422,10 +424,14 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
422
424
  <li>Jordi Ballester (ForgeFlow) &lt;<a class="reference external" href="mailto:jordi.ballester&#64;forgeflow.com">jordi.ballester&#64;forgeflow.com</a>&gt;</li>
423
425
  <li>Michael Allen &lt;<a class="reference external" href="mailto:mallen&#64;opensourceintegrators.com">mallen&#64;opensourceintegrators.com</a>&gt;</li>
424
426
  <li>Bhavesh Odedra &lt;<a class="reference external" href="mailto:bodedra&#64;opensourceintegrators.com">bodedra&#64;opensourceintegrators.com</a>&gt;</li>
427
+ <li><a class="reference external" href="https://trobz.com">Trobz</a>:<ul>
428
+ <li>Tuan Nguyen &lt;<a class="reference external" href="mailto:tuanna&#64;trobz.com">tuanna&#64;trobz.com</a>&gt;</li>
429
+ </ul>
430
+ </li>
425
431
  </ul>
426
432
  </div>
427
433
  <div class="section" id="maintainers">
428
- <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
434
+ <h3><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h3>
429
435
  <p>This module is maintained by the OCA.</p>
430
436
  <a class="reference external image-reference" href="https://odoo-community.org">
431
437
  <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
@@ -433,10 +439,11 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
433
439
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
434
440
  mission is to support the collaborative development of Odoo features and
435
441
  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/16.0/stock_inventory_lockdown">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
442
+ <p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-warehouse/tree/19.0/stock_inventory_lockdown">OCA/stock-logistics-warehouse</a> project on GitHub.</p>
437
443
  <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
444
  </div>
439
445
  </div>
440
446
  </div>
447
+ </div>
441
448
  </body>
442
449
  </html>
@@ -54,20 +54,22 @@ class StockInventoryLocationTest(TestStockCommon):
54
54
  def create_stock_move(self, product, origin_id=False, dest_id=False):
55
55
  return self.env["stock.move"].create(
56
56
  {
57
- "name": "Test move lock down",
58
57
  "product_id": product.id,
59
58
  "product_uom_qty": 10.0,
60
59
  "product_uom": product.uom_id.id,
61
- "location_id": origin_id or self.supplier_location,
62
- "location_dest_id": dest_id or self.customer_location,
60
+ "location_id": origin_id or self.supplier_location.id,
61
+ "location_dest_id": dest_id or self.customer_location.id,
63
62
  }
64
63
  )
65
64
 
66
65
  def test_update_parent_location(self):
67
66
  """Updating the parent of a location is OK if no inv. in progress."""
68
67
  self.inventory.action_state_to_draft()
69
- self.inventory.location_ids.location_id = self.env.ref(
70
- "stock.stock_location_14"
68
+ self.inventory.location_ids.location_id = self.env["stock.location"].create(
69
+ {
70
+ "name": "Shelf 2",
71
+ "location_id": self.env.ref("stock.warehouse0").lot_stock_id.id,
72
+ }
71
73
  )
72
74
 
73
75
  def test_update_parent_location_locked_down(self):
@@ -132,15 +134,18 @@ class StockInventoryLocationTest(TestStockCommon):
132
134
  move1._action_confirm()
133
135
  with self.assertRaises(ValidationError):
134
136
  move1._action_assign()
135
- move1.move_line_ids[0].qty_done = 10.0
137
+ move1.move_line_ids[0].quantity = 10.0
138
+ move1.picked = True
136
139
  move1._action_done()
140
+
137
141
  move2 = self.create_stock_move(
138
142
  self.productA, dest_id=self.inventory.location_ids.id
139
143
  )
140
144
  with self.assertRaises(ValidationError):
141
145
  move2._action_confirm()
142
146
  move2._action_assign()
143
- move2.move_line_ids[0].qty_done = 10.0
147
+ move2.move_line_ids[0].quantity = 10.0
148
+ move2.picked = True
144
149
  move2._action_done()
145
150
 
146
151
  def test_move_reserved_quants(self):
@@ -152,14 +157,16 @@ class StockInventoryLocationTest(TestStockCommon):
152
157
  move1 = self.create_stock_move(self.productB, self.new_parent_location.id)
153
158
  move1._action_confirm()
154
159
  move1._action_assign()
155
- move1.move_line_ids[0].qty_done = 10.0
160
+ move1.move_line_ids[0].quantity = 10.0
161
+ move1.picked = True
156
162
  move1._action_done()
157
163
  self.assertEqual(move1.state, "done", "Move has not been completed")
158
164
  move2 = self.create_stock_move(self.productA, self.new_parent_location.id)
159
165
  move2._action_confirm()
160
166
  with self.assertRaises(ValidationError):
161
167
  move2._action_assign()
162
- move2.move_line_ids[0].qty_done = 10.0
168
+ move2.move_line_ids[0].quantity = 10.0
169
+ move2.picked = True
163
170
  move2._action_done()
164
171
 
165
172
  def test_unlink(self):
@@ -1,19 +1,23 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-stock_inventory_lockdown
3
- Version: 16.0.1.0.0.8
3
+ Version: 19.0.1.0.0.2
4
+ Requires-Dist: odoo-addon-stock_inventory==19.0.*
5
+ Requires-Dist: odoo==19.0.*
4
6
  Summary: Lock down stock locations during inventories.
5
7
  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
8
  License: AGPL-3
9
+ Author: =?utf-8?q?Num=C3=A9rigraphe=2C_ForgeFlow=2C_Odoo_Community_Association_=28OCA=29?=
10
+ Author-email: support@odoo-community.org
9
11
  Classifier: Programming Language :: Python
10
12
  Classifier: Framework :: Odoo
11
- Classifier: Framework :: Odoo :: 16.0
13
+ Classifier: Framework :: Odoo :: 19.0
12
14
  Classifier: License :: OSI Approved :: GNU Affero General Public License v3
13
15
  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
16
+ Description-Content-Type: text/x-rst
17
+
18
+ .. image:: https://odoo-community.org/readme-banner-image
19
+ :target: https://odoo-community.org/get-involved?utm_source=readme
20
+ :alt: Odoo Community Association
17
21
 
18
22
  ===================
19
23
  Inventory Lock Down
@@ -24,23 +28,23 @@ Inventory Lock Down
24
28
  !! This file is generated by oca-gen-addon-readme !!
25
29
  !! changes will be overwritten. !!
26
30
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
27
- !! source digest: sha256:babaf62e88e317c7456236551ea3ca7c5620730997acea8fbf6e8c4fa3c9ccc0
31
+ !! source digest: sha256:b263d0b33007a09443ecb6e447f45fb0361e3fa2093bc32511b6cf7faee28304
28
32
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
29
33
 
30
34
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
31
35
  :target: https://odoo-community.org/page/development-status
32
36
  :alt: Beta
33
- .. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
37
+ .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
34
38
  :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
35
39
  :alt: License: AGPL-3
36
40
  .. |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/16.0/stock_inventory_lockdown
41
+ :target: https://github.com/OCA/stock-logistics-warehouse/tree/19.0/stock_inventory_lockdown
38
42
  :alt: OCA/stock-logistics-warehouse
39
43
  .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
40
- :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-16-0/stock-logistics-warehouse-16-0-stock_inventory_lockdown
44
+ :target: https://translation.odoo-community.org/projects/stock-logistics-warehouse-19-0/stock-logistics-warehouse-19-0-stock_inventory_lockdown
41
45
  :alt: Translate me on Weblate
42
46
  .. |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=16.0
47
+ :target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-warehouse&target_branch=19.0
44
48
  :alt: Try me on Runboat
45
49
 
46
50
  |badge1| |badge2| |badge3| |badge4| |badge5|
@@ -55,13 +59,13 @@ This module lets you lock down the locations during an inventory.
55
59
  Usage
56
60
  =====
57
61
 
58
- While an inventory is in the state "In progress", no stock moves
59
- can be recorded in/out of the inventory's location: users will get an error
60
- message.
61
- Creating or modifying locations is also forbidden.
62
+ While an inventory is in the state "In progress", no stock moves can be
63
+ recorded in/out of the inventory's location: users will get an error
64
+ message. Creating or modifying locations is also forbidden.
65
+
66
+ |image1|
62
67
 
63
- .. figure:: https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/16.0/stock_inventory_lockdown/static/images/move_error.png
64
- :alt: Error message
68
+ .. |image1| image:: https://raw.githubusercontent.com/OCA/stock-logistics-warehouse/19.0/stock_inventory_lockdown/static/images/move_error.png
65
69
 
66
70
  Bug Tracker
67
71
  ===========
@@ -69,7 +73,7 @@ Bug Tracker
69
73
  Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-warehouse/issues>`_.
70
74
  In case of trouble, please check there if your issue has already been reported.
71
75
  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:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
76
+ `feedback <https://github.com/OCA/stock-logistics-warehouse/issues/new?body=module:%20stock_inventory_lockdown%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
73
77
 
74
78
  Do not contact contributors directly about support or help with technical issues.
75
79
 
@@ -77,25 +81,28 @@ Credits
77
81
  =======
78
82
 
79
83
  Authors
80
- ~~~~~~~
84
+ -------
81
85
 
82
86
  * Numérigraphe
83
87
  * ForgeFlow
84
88
 
85
89
  Contributors
86
- ~~~~~~~~~~~~
90
+ ------------
91
+
92
+ - Loïc Bellier (Numérigraphe) <lb@numerigraphe.com>
93
+ - Lionel Sausin (Numérigraphe) <ls@numerigraphe.com>
94
+ - Laetitia Gangloff (Acsone) <laetitia.gangloff@acsone.eu>
95
+ - Laurent Mignon (Acsone) <laurent.mignon@acsone.eu>
96
+ - Lois Rilo (ForgeFlow) <lois.rilo@forgeflow.com>
97
+ - Jordi Ballester (ForgeFlow) <jordi.ballester@forgeflow.com>
98
+ - Michael Allen <mallen@opensourceintegrators.com>
99
+ - Bhavesh Odedra <bodedra@opensourceintegrators.com>
100
+ - `Trobz <https://trobz.com>`__:
87
101
 
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>
102
+ - Tuan Nguyen <tuanna@trobz.com>
96
103
 
97
104
  Maintainers
98
- ~~~~~~~~~~~
105
+ -----------
99
106
 
100
107
  This module is maintained by the OCA.
101
108
 
@@ -107,6 +114,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
107
114
  mission is to support the collaborative development of Odoo features and
108
115
  promote its widespread use.
109
116
 
110
- This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_inventory_lockdown>`_ project on GitHub.
117
+ This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/19.0/stock_inventory_lockdown>`_ project on GitHub.
111
118
 
112
119
  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=Ixoon_qnWhr-auX2K0G1X6JX76O-09ROoHY3zLhKWFs,3783
1
+ odoo/addons/stock_inventory_lockdown/README.rst,sha256=y-XUBJvUzM59xz3jHhF34DsdsO7AcciakjBiGG4tTB8,4012
2
2
  odoo/addons/stock_inventory_lockdown/__init__.py,sha256=X9EJGOE2GtZbS0G82PtSXmWSZ_R8jEM0rlJTDliQjp4,21
3
- odoo/addons/stock_inventory_lockdown/__manifest__.py,sha256=9OIJW3xq5dHCStpw6IQoLRzN0bIdykj9fFT4C2FKVyE,619
3
+ odoo/addons/stock_inventory_lockdown/__manifest__.py,sha256=qxwJYEjR-yCrEPhOPcKz7NaouHsAc_msBqn_nacfBoc,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=zNmBqtfkZ-mnH_hy5ulomRInemZu0rM7DNtFvdz8hOc,1439
20
+ odoo/addons/stock_inventory_lockdown/i18n/stock_inventory_lockdown.pot,sha256=TisWR-i1APH0jUrcS8bUxz---0JUqvCBShd4_BYxqlk,2056
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=bDRtA1hjzUlonZFietK4WAC_37U_u8T33HxywpEbo4s,988
28
- odoo/addons/stock_inventory_lockdown/models/stock_move_line.py,sha256=_nwsZpuJpNod1Pe_QyyAXVUWL2HtCZKHm7Ke21iZAd8,1702
29
- odoo/addons/stock_inventory_lockdown/readme/CONTRIBUTORS.rst,sha256=RkWdMD6bJtHm2xV8SHmvykJfT5ZLEJXId2Jc4DYa1j8,436
30
- odoo/addons/stock_inventory_lockdown/readme/DESCRIPTION.rst,sha256=vj3-Zi4qbZH3eJSRp9Q3V12ObRJ9R5ffhbQW2BErhME,66
31
- odoo/addons/stock_inventory_lockdown/readme/USAGE.rst,sha256=4aofNWRriH3GkSrMdIgL10X_Hp3x5eoK9AxT-aH0uoA,266
27
+ odoo/addons/stock_inventory_lockdown/models/stock_location.py,sha256=Ur9A12JwGJ-R6n8Pd47QYZnNcEzoQ-6-eoikMrwqTl4,1079
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=EA5rxLGlnBp9MLSbTPil_Peb7QArM8BrHhwV2bpb18I,13983
33
+ odoo/addons/stock_inventory_lockdown/static/description/index.html,sha256=8n_Th3L2rT5Ws4DZjmYW7FIltrasUqEASkMqE1bH_ms,14378
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=KuKVnb7824EfYCurBSI4wNkRWkkj3Re1j5l9rjQhX8w,6465
37
- odoo_addon_stock_inventory_lockdown-16.0.1.0.0.8.dist-info/METADATA,sha256=Fwih9nyhrtCPTeoHnEAivXLsJS51dabfy5ipbPxNmVA,4459
38
- odoo_addon_stock_inventory_lockdown-16.0.1.0.0.8.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
39
- odoo_addon_stock_inventory_lockdown-16.0.1.0.0.8.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
40
- odoo_addon_stock_inventory_lockdown-16.0.1.0.0.8.dist-info/RECORD,,
36
+ odoo/addons/stock_inventory_lockdown/tests/test_stock_inventory_lockdown.py,sha256=SeQ5FU2BoEGXq_2e6qBEXTwB7KxDr1gnD5jLMcN9-5Q,6676
37
+ odoo_addon_stock_inventory_lockdown-19.0.1.0.0.2.dist-info/METADATA,sha256=PGtqbffYZihx2D3ogh7MWRjoRFxH06AFwhii-33Buh0,4707
38
+ odoo_addon_stock_inventory_lockdown-19.0.1.0.0.2.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
39
+ odoo_addon_stock_inventory_lockdown-19.0.1.0.0.2.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
40
+ odoo_addon_stock_inventory_lockdown-19.0.1.0.0.2.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.45.1)
2
+ Generator: Whool 1.3
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -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