odoo-addon-stock-move-location 16.0.1.2.1.3__py3-none-any.whl → 16.0.1.2.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:f94651ddb9871ffc275f587042e4db32c13f087592f5766ea5b466264d47dcd1
10
+ !! source digest: sha256:903e53803bca6b78c5d800a4362d66413e84a4948978b62a191ef705b166f042
11
11
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12
12
 
13
13
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -139,6 +139,9 @@ Contributors
139
139
  - Iryna Vyshnevska <i.vyshnevska@mobilunity.com>
140
140
  - Alexei Rivera <arivera@archeti.com>
141
141
  - Abraham Anes <abraham@studio73.es>
142
+ - Quartile <https://www.quartile.co>
143
+
144
+ - Aung Ko Ko Lin
142
145
 
143
146
  Maintainers
144
147
  -----------
@@ -5,7 +5,7 @@
5
5
 
6
6
  {
7
7
  "name": "Move Stock Location",
8
- "version": "16.0.1.2.1",
8
+ "version": "16.0.1.2.2",
9
9
  "author": "Julius Network Solutions, "
10
10
  "BCIM,"
11
11
  "Camptocamp,"
@@ -11,3 +11,5 @@
11
11
  - Iryna Vyshnevska \<<i.vyshnevska@mobilunity.com>\>
12
12
  - Alexei Rivera \<<arivera@archeti.com>\>
13
13
  - Abraham Anes \<<abraham@studio73.es>\>
14
+ - Quartile \<<https://www.quartile.co>\>
15
+ - Aung Ko Ko Lin
@@ -1,4 +1,3 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
1
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
2
  <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
3
  <head>
@@ -367,7 +366,7 @@ ul.auto-toc {
367
366
  !! This file is generated by oca-gen-addon-readme !!
368
367
  !! changes will be overwritten. !!
369
368
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370
- !! source digest: sha256:f94651ddb9871ffc275f587042e4db32c13f087592f5766ea5b466264d47dcd1
369
+ !! source digest: sha256:903e53803bca6b78c5d800a4362d66413e84a4948978b62a191ef705b166f042
371
370
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372
371
  <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>
373
372
  <p>This module allows to move entire location of products from one place to
@@ -479,6 +478,10 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
479
478
  <li>Iryna Vyshnevska &lt;<a class="reference external" href="mailto:i.vyshnevska&#64;mobilunity.com">i.vyshnevska&#64;mobilunity.com</a>&gt;</li>
480
479
  <li>Alexei Rivera &lt;<a class="reference external" href="mailto:arivera&#64;archeti.com">arivera&#64;archeti.com</a>&gt;</li>
481
480
  <li>Abraham Anes &lt;<a class="reference external" href="mailto:abraham&#64;studio73.es">abraham&#64;studio73.es</a>&gt;</li>
481
+ <li>Quartile &lt;<a class="reference external" href="https://www.quartile.co">https://www.quartile.co</a>&gt;<ul>
482
+ <li>Aung Ko Ko Lin</li>
483
+ </ul>
484
+ </li>
482
485
  </ul>
483
486
  </div>
484
487
  <div class="section" id="maintainers">
@@ -124,7 +124,28 @@ class TestMoveLocation(TestsCommon):
124
124
  wizard.action_move_location()
125
125
  picking = wizard.picking_id
126
126
  self.assertEqual(picking.state, "assigned")
127
- self.assertEqual(len(picking.move_line_ids), 7)
127
+ self.assertEqual(
128
+ len(wizard.stock_move_location_line_ids), len(picking.move_line_ids)
129
+ )
130
+ wizard_lines = sorted(
131
+ [
132
+ (line.product_id.id, line.lot_id.id, line.move_quantity)
133
+ for line in wizard.stock_move_location_line_ids
134
+ ],
135
+ key=lambda x: (x[0], x[1]),
136
+ )
137
+ picking_lines = sorted(
138
+ [
139
+ (line.product_id.id, line.lot_id.id, line.reserved_uom_qty)
140
+ for line in picking.move_line_ids
141
+ ],
142
+ key=lambda x: (x[0], x[1]),
143
+ )
144
+ self.assertEqual(
145
+ wizard_lines,
146
+ picking_lines,
147
+ "Mismatch between move location lines and move lines",
148
+ )
128
149
  self.assertEqual(
129
150
  sorted(picking.move_line_ids.mapped("reserved_uom_qty")),
130
151
  [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 123.0],
@@ -100,6 +100,7 @@ class StockMoveLocationWizard(models.TransientModel):
100
100
  "product_id": quant.product_id.id,
101
101
  "move_quantity": quant.quantity,
102
102
  "max_quantity": quant.quantity,
103
+ "reserved_quantity": quant.reserved_quantity,
103
104
  "origin_location_id": quant.location_id.id,
104
105
  "lot_id": quant.lot_id.id,
105
106
  "package_id": quant.package_id.id,
@@ -128,6 +129,7 @@ class StockMoveLocationWizard(models.TransientModel):
128
129
  "product_id": quant.product_id.id,
129
130
  "move_quantity": qty,
130
131
  "max_quantity": qty,
132
+ "reserved_quantity": quant.reserved_quantity,
131
133
  "origin_location_id": quant.location_id.id,
132
134
  "lot_id": quant.lot_id.id,
133
135
  "package_id": quant.package_id.id,
@@ -155,7 +157,7 @@ class StockMoveLocationWizard(models.TransientModel):
155
157
  def _get_locations_domain(self):
156
158
  return [
157
159
  "|",
158
- ("company_id", "=", self.env.user.company_id.id),
160
+ ("company_id", "=", self.env.company.id),
159
161
  ("company_id", "=", False),
160
162
  ]
161
163
 
@@ -207,9 +209,30 @@ class StockMoveLocationWizard(models.TransientModel):
207
209
  def _create_move(self, picking, lines):
208
210
  self.ensure_one()
209
211
  move = self.env["stock.move"].create(self._get_move_values(picking, lines))
210
- if not self.env.context.get("planned"):
212
+ lines.create_move_lines(picking, move)
213
+ if self.env.context.get("planned"):
211
214
  for line in lines:
212
- line.create_move_lines(picking, move)
215
+ available_quantity = self.env["stock.quant"]._get_available_quantity(
216
+ line.product_id,
217
+ line.origin_location_id,
218
+ lot_id=line.lot_id,
219
+ package_id=line.package_id,
220
+ owner_id=line.owner_id,
221
+ strict=False,
222
+ )
223
+ move._update_reserved_quantity(
224
+ line.move_quantity,
225
+ available_quantity,
226
+ line.origin_location_id,
227
+ lot_id=line.lot_id,
228
+ package_id=line.package_id,
229
+ owner_id=line.owner_id,
230
+ strict=False,
231
+ )
232
+ # Force the state to be assigned, instead of _action_assign,
233
+ # to avoid discarding the selected move_location_line.
234
+ move.state = "assigned"
235
+ move.move_line_ids.write({"state": "assigned"})
213
236
  return move
214
237
 
215
238
  def _unreserve_moves(self):
@@ -255,9 +278,6 @@ class StockMoveLocationWizard(models.TransientModel):
255
278
  moves_to_reassign = self._unreserve_moves()
256
279
  picking.button_validate()
257
280
  moves_to_reassign._action_assign()
258
- else:
259
- picking.action_confirm()
260
- picking.action_assign()
261
281
  self.picking_id = picking
262
282
  return self._get_picking_action(picking.id)
263
283
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-stock-move-location
3
- Version: 16.0.1.2.1.3
3
+ Version: 16.0.1.2.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)
@@ -23,7 +23,7 @@ Move Stock Location
23
23
  !! This file is generated by oca-gen-addon-readme !!
24
24
  !! changes will be overwritten. !!
25
25
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
26
- !! source digest: sha256:f94651ddb9871ffc275f587042e4db32c13f087592f5766ea5b466264d47dcd1
26
+ !! source digest: sha256:903e53803bca6b78c5d800a4362d66413e84a4948978b62a191ef705b166f042
27
27
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
28
28
 
29
29
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -155,6 +155,9 @@ Contributors
155
155
  - Iryna Vyshnevska <i.vyshnevska@mobilunity.com>
156
156
  - Alexei Rivera <arivera@archeti.com>
157
157
  - Abraham Anes <abraham@studio73.es>
158
+ - Quartile <https://www.quartile.co>
159
+
160
+ - Aung Ko Ko Lin
158
161
 
159
162
  Maintainers
160
163
  -----------
@@ -1,6 +1,6 @@
1
- odoo/addons/stock_move_location/README.rst,sha256=VeC2gNOr9GAEqxneLimeLfCmX109ljlxOPoP0Y6BcLY,6220
1
+ odoo/addons/stock_move_location/README.rst,sha256=p03dOyA1H4TnDaGRUJ_V8jIdstZSI5-DMgpDjnNjClg,6280
2
2
  odoo/addons/stock_move_location/__init__.py,sha256=a529MU97ndMyMZsToYJmFXUHanvFmTyIZL9lmHsflPM,88
3
- odoo/addons/stock_move_location/__manifest__.py,sha256=14ocErYUNCIfCHQEa1kVQTosoKGWfS_X61nzevPGqpI,901
3
+ odoo/addons/stock_move_location/__manifest__.py,sha256=tcLWwJtKnK1FJf1H61fQmzz1YDxQVF3dUoizKF_2YR8,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
@@ -17,24 +17,24 @@ odoo/addons/stock_move_location/models/__init__.py,sha256=UrroaZ7L0mQgueiSi7qJ-m
17
17
  odoo/addons/stock_move_location/models/stock_move.py,sha256=UxsvfgwL_bfAEDrMdu_HGLlabPyZCjnf4MfeFzNPPI0,604
18
18
  odoo/addons/stock_move_location/models/stock_picking.py,sha256=zaUHgEKdL9SjbkhiMwbkptKc3JzqXjeA-djbMjJ2KWc,1662
19
19
  odoo/addons/stock_move_location/models/stock_picking_type.py,sha256=9czGhJxYbgoB9umbf3Vw2TuyGWDC_cBXhaDq_cSN0t0,962
20
- odoo/addons/stock_move_location/readme/CONTRIBUTORS.md,sha256=QaNDWbd2hZjAxwWQebAZ8IY5y4NbHFaRaXbkA1mnv9g,549
20
+ odoo/addons/stock_move_location/readme/CONTRIBUTORS.md,sha256=g2l7L5LbvIulu-WXtursmsqPbMajtXwESFojI0wPVqo,609
21
21
  odoo/addons/stock_move_location/readme/DESCRIPTION.md,sha256=cVmKIDWpKU3Ep66adAVRrNkMQB-yeJ-8QTRayNHTX1M,116
22
22
  odoo/addons/stock_move_location/readme/ROADMAP.md,sha256=HW9tNWBGh6oAjRj8qWMlXPc0XQu7325gRxcs9jeR4ZM,487
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=DquZIFRo0JSYjrekggfcGyVOMFc44FHnOrjwDpCsDgI,16939
26
+ odoo/addons/stock_move_location/static/description/index.html,sha256=Hc3ZmJwWn4_sOToeJ4RhmgyEpxe7-NHGPJBDHJ-9aD0,17050
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=4tR27h50WqiUQB6ptuu_IUKevEezXRSF677TskMyF58,11407
29
+ odoo/addons/stock_move_location/tests/test_move_location.py,sha256=_dJxpK5wvZ3z2zdmIrg5dA0-pUD9Ug4UXiHCLBM6xiU,12108
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=pv3OAcJrugj0mYlAgr6wFsSOWpBClnSLbBv_xFP-9QA,13351
34
+ odoo/addons/stock_move_location/wizard/stock_move_location.py,sha256=OAoLF_rCzsYKAZwqWx1TThbi0qGnT7zG-q_LfnQwheo,14338
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=X756gw7-d479UmJvvDemKlgnXPpjuE3igDv5IRa0ucs,6322
37
- odoo_addon_stock_move_location-16.0.1.2.1.3.dist-info/METADATA,sha256=sdNITqS0g3bel-mbMrBJ_InysY0Q2z_Wx5XIp_UccYI,6853
38
- odoo_addon_stock_move_location-16.0.1.2.1.3.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
39
- odoo_addon_stock_move_location-16.0.1.2.1.3.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
40
- odoo_addon_stock_move_location-16.0.1.2.1.3.dist-info/RECORD,,
37
+ odoo_addon_stock_move_location-16.0.1.2.2.dist-info/METADATA,sha256=AOZi6WMZ7yU2JvL_zGnrXfkPpEO61x2VmzDCHzeDES8,6911
38
+ odoo_addon_stock_move_location-16.0.1.2.2.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
39
+ odoo_addon_stock_move_location-16.0.1.2.2.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
40
+ odoo_addon_stock_move_location-16.0.1.2.2.dist-info/RECORD,,