odoo-addon-stock-move-location 16.0.1.3.0__py3-none-any.whl → 16.0.1.3.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.
@@ -7,7 +7,7 @@ Move Stock Location
7
7
  !! This file is generated by oca-gen-addon-readme !!
8
8
  !! changes will be overwritten. !!
9
9
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10
- !! source digest: sha256:b4329a36a4a39c583bb9d25ea2fb41b23e5b90ca156223d5bf8a0d75fa0218ef
10
+ !! source digest: sha256:48886783320e6ee180abc8111f003865ecfbbcb0e8c1fd7c85eb60bfbba2411d
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -5,7 +5,7 @@
5
5
 
6
6
  {
7
7
  "name": "Move Stock Location",
8
- "version": "16.0.1.3.0",
8
+ "version": "16.0.1.3.2",
9
9
  "author": "Julius Network Solutions, "
10
10
  "BCIM,"
11
11
  "Camptocamp,"
@@ -8,10 +8,11 @@
8
8
 
9
9
  /*
10
10
  :Author: David Goodger (goodger@python.org)
11
- :Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $
11
+ :Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
12
12
  :Copyright: This stylesheet has been placed in the public domain.
13
13
 
14
14
  Default cascading style sheet for the HTML output of Docutils.
15
+ Despite the name, some widely supported CSS2 features are used.
15
16
 
16
17
  See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
17
18
  customize this style sheet.
@@ -274,7 +275,7 @@ pre.literal-block, pre.doctest-block, pre.math, pre.code {
274
275
  margin-left: 2em ;
275
276
  margin-right: 2em }
276
277
 
277
- pre.code .ln { color: grey; } /* line numbers */
278
+ pre.code .ln { color: gray; } /* line numbers */
278
279
  pre.code, code { background-color: #eeeeee }
279
280
  pre.code .comment, code .comment { color: #5C6576 }
280
281
  pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
@@ -300,7 +301,7 @@ span.option {
300
301
  span.pre {
301
302
  white-space: pre }
302
303
 
303
- span.problematic {
304
+ span.problematic, pre.problematic {
304
305
  color: red }
305
306
 
306
307
  span.section-subtitle {
@@ -366,7 +367,7 @@ ul.auto-toc {
366
367
  !! This file is generated by oca-gen-addon-readme !!
367
368
  !! changes will be overwritten. !!
368
369
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
369
- !! source digest: sha256:b4329a36a4a39c583bb9d25ea2fb41b23e5b90ca156223d5bf8a0d75fa0218ef
370
+ !! source digest: sha256:48886783320e6ee180abc8111f003865ecfbbcb0e8c1fd7c85eb60bfbba2411d
370
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/16.0/stock_move_location"><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_move_location"><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>
372
373
  <p>This module allows to move entire location of products from one place to
@@ -487,7 +488,9 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
487
488
  <div class="section" id="maintainers">
488
489
  <h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
489
490
  <p>This module is maintained by the OCA.</p>
490
- <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a>
491
+ <a class="reference external image-reference" href="https://odoo-community.org">
492
+ <img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
493
+ </a>
491
494
  <p>OCA, or the Odoo Community Association, is a nonprofit organization whose
492
495
  mission is to support the collaborative development of Odoo features and
493
496
  promote its widespread use.</p>
@@ -151,6 +151,77 @@ class TestMoveLocation(TestsCommon):
151
151
  [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 123.0],
152
152
  )
153
153
 
154
+ def test_planned_transfer_strict(self):
155
+ product = self.env["product.product"].create(
156
+ {"name": "Test", "type": "product", "tracking": "lot"}
157
+ )
158
+ lot = self.env["stock.lot"].create(
159
+ {
160
+ "name": "Test lot",
161
+ "product_id": product.id,
162
+ }
163
+ )
164
+ self.set_product_amount(
165
+ product,
166
+ self.internal_loc_1,
167
+ 10.0,
168
+ )
169
+ self.set_product_amount(
170
+ product,
171
+ self.internal_loc_1,
172
+ 10.0,
173
+ lot_id=lot,
174
+ )
175
+ wizard = self._create_wizard(self.internal_loc_1, self.internal_loc_2)
176
+ wizard.onchange_origin_location()
177
+ wizard = wizard.with_context(planned=True)
178
+ location_lines = wizard.stock_move_location_line_ids.filtered(
179
+ lambda r: r.product_id.id != product.id or r.lot_id.id != lot.id
180
+ )
181
+ location_lines.unlink()
182
+ wizard.action_move_location()
183
+ picking = wizard.picking_id
184
+ self.assertEqual(picking.state, "assigned")
185
+ self.assertEqual(
186
+ len(wizard.stock_move_location_line_ids), len(picking.move_line_ids)
187
+ )
188
+ location_line = wizard.stock_move_location_line_ids
189
+ wizard_lines = [
190
+ location_line.product_id.id,
191
+ location_line.lot_id.id,
192
+ location_line.move_quantity,
193
+ ]
194
+ line = picking.move_line_ids
195
+ picking_lines = [line.product_id.id, line.lot_id.id, line.reserved_uom_qty]
196
+ self.assertEqual(
197
+ wizard_lines,
198
+ picking_lines,
199
+ "Mismatch between move location lines and move lines",
200
+ )
201
+ self.assertEqual(
202
+ picking.move_line_ids.reserved_uom_qty,
203
+ 10.0,
204
+ )
205
+
206
+ # Create planned transfer for same quant
207
+ wizard = self._create_wizard(self.internal_loc_1, self.internal_loc_2)
208
+ wizard.onchange_origin_location()
209
+ wizard = wizard.with_context(planned=True)
210
+ location_lines = wizard.stock_move_location_line_ids.filtered(
211
+ lambda r: r.product_id.id != product.id or r.lot_id.id != lot.id
212
+ )
213
+ location_lines.unlink()
214
+ wizard.action_move_location()
215
+ picking = wizard.picking_id
216
+ self.assertEqual(picking.state, "assigned")
217
+ self.assertEqual(
218
+ len(wizard.stock_move_location_line_ids), len(picking.move_line_ids)
219
+ )
220
+ self.assertEqual(
221
+ picking.move_line_ids.mapped("reserved_uom_qty"),
222
+ [0.0],
223
+ )
224
+
154
225
  def test_quant_transfer(self):
155
226
  """Test quants transfer."""
156
227
  quants = self.product_lots.stock_quant_ids
@@ -67,7 +67,7 @@ class StockMoveLocationWizard(models.TransientModel):
67
67
  @api.depends_context("company")
68
68
  @api.depends("origin_location_id")
69
69
  def _compute_picking_type_id(self):
70
- company_id = self.env.context.get("company_id") or self.env.user.company_id.id
70
+ company_id = self.env.context.get("company_id") or self.env.company.id
71
71
  for rec in self:
72
72
  picking_type = self.env["stock.picking.type"]
73
73
  base_domain = [
@@ -230,7 +230,7 @@ class StockMoveLocationWizard(models.TransientModel):
230
230
  lot_id=line.lot_id,
231
231
  package_id=line.package_id,
232
232
  owner_id=line.owner_id,
233
- strict=False,
233
+ strict=True,
234
234
  )
235
235
  move._update_reserved_quantity(
236
236
  line.move_quantity,
@@ -239,7 +239,7 @@ class StockMoveLocationWizard(models.TransientModel):
239
239
  lot_id=line.lot_id,
240
240
  package_id=line.package_id,
241
241
  owner_id=line.owner_id,
242
- strict=False,
242
+ strict=True,
243
243
  )
244
244
  # Force the state to be assigned, instead of _action_assign,
245
245
  # to avoid discarding the selected move_location_line.
@@ -1,12 +1,11 @@
1
1
  Metadata-Version: 2.1
2
- Name: odoo-addon-stock-move-location
3
- Version: 16.0.1.3.0
2
+ Name: odoo-addon-stock_move_location
3
+ Version: 16.0.1.3.2
4
4
  Summary: This module allows to move all stock in a stock location to an other one.
5
5
  Home-page: https://github.com/OCA/stock-logistics-warehouse
6
6
  Author: Julius Network Solutions, BCIM,Camptocamp,Odoo Community Association (OCA)
7
7
  Author-email: support@odoo-community.org
8
8
  License: AGPL-3
9
- Platform: UNKNOWN
10
9
  Classifier: Programming Language :: Python
11
10
  Classifier: Framework :: Odoo
12
11
  Classifier: Framework :: Odoo :: 16.0
@@ -23,7 +22,7 @@ Move Stock Location
23
22
  !! This file is generated by oca-gen-addon-readme !!
24
23
  !! changes will be overwritten. !!
25
24
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
26
- !! source digest: sha256:b4329a36a4a39c583bb9d25ea2fb41b23e5b90ca156223d5bf8a0d75fa0218ef
25
+ !! source digest: sha256:48886783320e6ee180abc8111f003865ecfbbcb0e8c1fd7c85eb60bfbba2411d
27
26
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
27
 
29
28
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -175,5 +174,3 @@ promote its widespread use.
175
174
  This module is part of the `OCA/stock-logistics-warehouse <https://github.com/OCA/stock-logistics-warehouse/tree/16.0/stock_move_location>`_ project on GitHub.
176
175
 
177
176
  You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
178
-
179
-
@@ -1,6 +1,6 @@
1
- odoo/addons/stock_move_location/README.rst,sha256=8GxXeXA-qBBrbaV-4LTW3zEG0UpppUZRXT6YYJah2so,6280
1
+ odoo/addons/stock_move_location/README.rst,sha256=2rHrQDCL7hmNZqbpF_CZ9AvFmH8Jj-OtXrjDil86XYg,6280
2
2
  odoo/addons/stock_move_location/__init__.py,sha256=a529MU97ndMyMZsToYJmFXUHanvFmTyIZL9lmHsflPM,88
3
- odoo/addons/stock_move_location/__manifest__.py,sha256=Lc7Wf8ReP5f2U3YePeJ86sGvOR5s0BlTmNFRP-VI38E,901
3
+ odoo/addons/stock_move_location/__manifest__.py,sha256=RuvLFgJMFXJEc1veeTB9AidvqKvjhWz2Dn9-rBfAf2M,901
4
4
  odoo/addons/stock_move_location/init_hook.py,sha256=iIIjLsKG3z1Esn7A_tiIQZ9jXPvVs6EIhtNICdv-FQA,419
5
5
  odoo/addons/stock_move_location/data/stock_quant_view.xml,sha256=g7KS13Q9jEIZTKiNHjWrFcggfYyfK2ZW2VONnCLSZaI,635
6
6
  odoo/addons/stock_move_location/i18n/de.po,sha256=fS9Z6po8XinTgKYyVhcPgld_LU8F4U-86YxWLqj7610,11196
@@ -23,18 +23,18 @@ odoo/addons/stock_move_location/readme/ROADMAP.md,sha256=HW9tNWBGh6oAjRj8qWMlXPc
23
23
  odoo/addons/stock_move_location/readme/USAGE.md,sha256=sT_tcsfaJ6sG7y1ogNpTQzTBh8qzx2t5vbgjV_zW_Cw,2055
24
24
  odoo/addons/stock_move_location/security/ir.model.access.csv,sha256=sLpkI9b3t8YdWBbYPjzlQrCbmv-_C0bUwzd10cMF14M,338
25
25
  odoo/addons/stock_move_location/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
26
- odoo/addons/stock_move_location/static/description/index.html,sha256=OLRq7XqQAz89dDl5xni9a1BwtjOUzn6JxfHgFCaCeQY,17050
26
+ odoo/addons/stock_move_location/static/description/index.html,sha256=5bYuqs7TXlsJfV_8LmBm_TsYKmWeE12gHnJ5sm19lmg,17133
27
27
  odoo/addons/stock_move_location/tests/__init__.py,sha256=gDGhCnhTYQONkRkGhPtOhgWTJ8sj6zs-sl2YRRvqGvQ,98
28
28
  odoo/addons/stock_move_location/tests/test_common.py,sha256=YiCuKwGt6Tt5vli0Iiwgv3gmGb2xU0irK87K1hCimQQ,6112
29
- odoo/addons/stock_move_location/tests/test_move_location.py,sha256=_HjZ0Gy4UXPNUlG-SJAG4WQpc_zvTitkOv1LitWHDNE,12447
29
+ odoo/addons/stock_move_location/tests/test_move_location.py,sha256=vlu1Vz5bO05--HErbSz9QWbl8BmdgbrvcR_odUdymXs,15011
30
30
  odoo/addons/stock_move_location/tests/test_stock_fillwithstock.py,sha256=BvMF_7nubCdd_o337qjQxJMdZ3WzGd8--DyDkkv6c-g,2838
31
31
  odoo/addons/stock_move_location/views/stock_picking.xml,sha256=isH25PIq7A2rfCUzk9_HFYA8WIoGm5HNDu-N3CJazRQ,730
32
32
  odoo/addons/stock_move_location/views/stock_picking_type_views.xml,sha256=V8_fzqt7ga3O8U81JNbb8NOuT0JHsXwC2bG1jqJvmAk,1483
33
33
  odoo/addons/stock_move_location/wizard/__init__.py,sha256=0YXi68VJIkwZDO1-ZFirM2ANY3Mi7PEPdYW0Gg46lmY,239
34
- odoo/addons/stock_move_location/wizard/stock_move_location.py,sha256=zPp4RtOT-Ibkz46fqhkDwgg377AA-t8z2ZnSffOSN1g,15115
34
+ odoo/addons/stock_move_location/wizard/stock_move_location.py,sha256=nrrlXGsF-DPpKobAQiPbvqhrmKIELYCLRDMOYVTMqug,15105
35
35
  odoo/addons/stock_move_location/wizard/stock_move_location.xml,sha256=6DjFtlJJuJM31rrPjpu1hGrRdrj2iHGvDbRnUozRiSg,7878
36
36
  odoo/addons/stock_move_location/wizard/stock_move_location_line.py,sha256=7ORteDfC0RzWBEYuzlr6yn7_XN__VdyfJ31OkJ_mIwM,6323
37
- odoo_addon_stock_move_location-16.0.1.3.0.dist-info/METADATA,sha256=pJdQTlZtajUAzPUGlYEqoZO14hUUkShKTAtuf9671X8,6911
38
- odoo_addon_stock_move_location-16.0.1.3.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
39
- odoo_addon_stock_move_location-16.0.1.3.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
40
- odoo_addon_stock_move_location-16.0.1.3.0.dist-info/RECORD,,
37
+ odoo_addon_stock_move_location-16.0.1.3.2.dist-info/METADATA,sha256=lD6pK_lCOMMF6pRaa7N0BvxuGFd8ZjC80oeXVGpVrTk,6891
38
+ odoo_addon_stock_move_location-16.0.1.3.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
39
+ odoo_addon_stock_move_location-16.0.1.3.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
40
+ odoo_addon_stock_move_location-16.0.1.3.2.dist-info/RECORD,,