odoo-addon-shipment-advice 18.0.1.2.0.2__py3-none-any.whl → 18.0.1.2.1__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/shipment_advice/README.rst +1 -1
- odoo/addons/shipment_advice/__manifest__.py +1 -1
- odoo/addons/shipment_advice/i18n/shipment_advice.pot +8 -6
- odoo/addons/shipment_advice/models/shipment_advice.py +21 -12
- odoo/addons/shipment_advice/static/description/index.html +1 -1
- odoo/addons/shipment_advice/tests/test_shipment_advice.py +8 -5
- odoo/addons/shipment_advice/tests/test_shipment_advice_async.py +8 -5
- {odoo_addon_shipment_advice-18.0.1.2.0.2.dist-info → odoo_addon_shipment_advice-18.0.1.2.1.dist-info}/METADATA +2 -2
- {odoo_addon_shipment_advice-18.0.1.2.0.2.dist-info → odoo_addon_shipment_advice-18.0.1.2.1.dist-info}/RECORD +11 -11
- {odoo_addon_shipment_advice-18.0.1.2.0.2.dist-info → odoo_addon_shipment_advice-18.0.1.2.1.dist-info}/WHEEL +0 -0
- {odoo_addon_shipment_advice-18.0.1.2.0.2.dist-info → odoo_addon_shipment_advice-18.0.1.2.1.dist-info}/top_level.txt +0 -0
|
@@ -11,7 +11,7 @@ Shipment Advice
|
|
|
11
11
|
!! This file is generated by oca-gen-addon-readme !!
|
|
12
12
|
!! changes will be overwritten. !!
|
|
13
13
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
14
|
-
!! source digest: sha256:
|
|
14
|
+
!! source digest: sha256:72426a62b77dd687b44481de0b8605bae555ac32da88e40a24aac717e376fe63
|
|
15
15
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
16
16
|
|
|
17
17
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
{
|
|
5
5
|
"name": "Shipment Advice",
|
|
6
6
|
"summary": "Manage your (un)loading process through shipment advices.",
|
|
7
|
-
"version": "18.0.1.2.
|
|
7
|
+
"version": "18.0.1.2.1",
|
|
8
8
|
"author": "Camptocamp, BCIM, Odoo Community Association (OCA)",
|
|
9
9
|
"maintainers": ["jbaudoux"],
|
|
10
10
|
"website": "https://github.com/OCA/stock-logistics-transport",
|
|
@@ -724,12 +724,6 @@ msgstr ""
|
|
|
724
724
|
msgid "Number of messages with delivery error"
|
|
725
725
|
msgstr ""
|
|
726
726
|
|
|
727
|
-
#. module: shipment_advice
|
|
728
|
-
#. odoo-python
|
|
729
|
-
#: code:addons/shipment_advice/models/shipment_advice.py:0
|
|
730
|
-
msgid "One of the pickings to process failed to validate"
|
|
731
|
-
msgstr ""
|
|
732
|
-
|
|
733
727
|
#. module: shipment_advice
|
|
734
728
|
#: model:ir.model.fields,field_description:shipment_advice.field_wizard_load_shipment__open_shipment
|
|
735
729
|
msgid "Open Shipment"
|
|
@@ -1077,6 +1071,14 @@ msgstr ""
|
|
|
1077
1071
|
msgid "The company is automatically set from your user preferences."
|
|
1078
1072
|
msgstr ""
|
|
1079
1073
|
|
|
1074
|
+
#. module: shipment_advice
|
|
1075
|
+
#. odoo-python
|
|
1076
|
+
#: code:addons/shipment_advice/models/shipment_advice.py:0
|
|
1077
|
+
msgid ""
|
|
1078
|
+
"The following pickings failed to validate\n"
|
|
1079
|
+
"%s"
|
|
1080
|
+
msgstr ""
|
|
1081
|
+
|
|
1080
1082
|
#. module: shipment_advice
|
|
1081
1083
|
#: model_terms:ir.ui.view,arch_db:shipment_advice.shipment_advice_view_search
|
|
1082
1084
|
msgid "This Week"
|
|
@@ -395,13 +395,17 @@ class ShipmentAdvice(models.Model):
|
|
|
395
395
|
]
|
|
396
396
|
),
|
|
397
397
|
group(self.delayable(description=self.name)._unplan_undone_moves()),
|
|
398
|
-
group(
|
|
398
|
+
group(
|
|
399
|
+
self.delayable(description=self.name)._postprocess_action_done(
|
|
400
|
+
backorder_policy
|
|
401
|
+
)
|
|
402
|
+
),
|
|
399
403
|
).delay()
|
|
400
404
|
return
|
|
401
405
|
for picking in pickings:
|
|
402
406
|
self._validate_picking(picking, backorder_policy)
|
|
403
407
|
self._unplan_undone_moves()
|
|
404
|
-
self._postprocess_action_done()
|
|
408
|
+
self._postprocess_action_done(backorder_policy)
|
|
405
409
|
|
|
406
410
|
def _check_action_done_allowed(self):
|
|
407
411
|
for shipment in self:
|
|
@@ -417,15 +421,13 @@ class ShipmentAdvice(models.Model):
|
|
|
417
421
|
self._lock_records(picking)
|
|
418
422
|
try:
|
|
419
423
|
with self.env.cr.savepoint():
|
|
420
|
-
if (
|
|
421
|
-
picking.
|
|
422
|
-
|
|
423
|
-
):
|
|
424
|
+
if not picking._check_backorder():
|
|
425
|
+
picking.with_context(skip_backorder=True).button_validate()
|
|
426
|
+
elif backorder_policy == "create_backorder":
|
|
424
427
|
wiz = self.env["stock.backorder.confirmation"].create({})
|
|
425
428
|
wiz.pick_ids = picking
|
|
426
429
|
wiz.with_context(button_validate_picking_ids=picking.ids).process()
|
|
427
|
-
|
|
428
|
-
picking.with_context(skip_backorder=True).button_validate()
|
|
430
|
+
|
|
429
431
|
except UserError as error:
|
|
430
432
|
self.write(
|
|
431
433
|
{
|
|
@@ -444,18 +446,25 @@ class ShipmentAdvice(models.Model):
|
|
|
444
446
|
).filtered(lambda m: m.state not in ("cancel", "done") and not m.picked)
|
|
445
447
|
moves_to_unplan.shipment_advice_id = False
|
|
446
448
|
|
|
447
|
-
def _postprocess_action_done(self):
|
|
449
|
+
def _postprocess_action_done(self, backorder_policy):
|
|
448
450
|
self.ensure_one()
|
|
449
451
|
if self.state != "in_process":
|
|
450
452
|
return
|
|
451
|
-
|
|
453
|
+
in_process_pickings = self._get_picking_to_process().filtered(
|
|
452
454
|
lambda p: p.state not in ("done", "cancel")
|
|
453
|
-
)
|
|
455
|
+
)
|
|
456
|
+
should_write_an_error = backorder_policy != "leave_open"
|
|
457
|
+
if in_process_pickings and should_write_an_error:
|
|
458
|
+
# This is normal to have pickings that aren't 100% processed if
|
|
459
|
+
# backorder_policy is leave open.
|
|
460
|
+
# This should never happen, as we have either created a backorder
|
|
461
|
+
# for the unprocessed moves, or we allow shipments with partial pickings.
|
|
454
462
|
self.write(
|
|
455
463
|
{
|
|
456
464
|
"state": "error",
|
|
457
465
|
"error_message": self.env._(
|
|
458
|
-
"
|
|
466
|
+
"The following pickings failed to validate\n%s",
|
|
467
|
+
", ".join(in_process_pickings.mapped("name")),
|
|
459
468
|
),
|
|
460
469
|
}
|
|
461
470
|
)
|
|
@@ -372,7 +372,7 @@ ul.auto-toc {
|
|
|
372
372
|
!! This file is generated by oca-gen-addon-readme !!
|
|
373
373
|
!! changes will be overwritten. !!
|
|
374
374
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
375
|
-
!! source digest: sha256:
|
|
375
|
+
!! source digest: sha256:72426a62b77dd687b44481de0b8605bae555ac32da88e40a24aac717e376fe63
|
|
376
376
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
|
377
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-transport/tree/18.0/shipment_advice"><img alt="OCA/stock-logistics-transport" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--transport-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-transport-18-0/stock-logistics-transport-18-0-shipment_advice"><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-transport&target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
|
378
378
|
<p>Manage your (un)loading process through shipment advices.</p>
|
|
@@ -108,13 +108,16 @@ class TestShipmentAdvice(Common):
|
|
|
108
108
|
# Validate the shipment => the transfer is still open
|
|
109
109
|
self.shipment_advice_out.action_done()
|
|
110
110
|
picking = package_level.picking_id
|
|
111
|
-
|
|
111
|
+
# We allow to process shipment advices with partial pickings,
|
|
112
|
+
# this shouldn't raise an error.
|
|
113
|
+
self.assertEqual(self.shipment_advice_out.state, "done")
|
|
112
114
|
# Check the transfer
|
|
113
115
|
self.assertTrue(
|
|
114
|
-
all(
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
all(move_line.picked for move_line in package_level.move_line_ids)
|
|
117
|
+
)
|
|
118
|
+
# move 1 is still on the dock
|
|
119
|
+
self.assertFalse(
|
|
120
|
+
any(move_line.picked for move_line in self.move_product_out1.move_line_ids)
|
|
118
121
|
)
|
|
119
122
|
self.assertEqual(picking.state, "assigned")
|
|
120
123
|
|
|
@@ -148,13 +148,16 @@ class TestShipmentAdvice(Common):
|
|
|
148
148
|
self._asset_jobs_dependency(jobs)
|
|
149
149
|
trap.perform_enqueued_jobs()
|
|
150
150
|
picking = package_level.picking_id
|
|
151
|
-
|
|
151
|
+
# We allow to process shipment advices with partial pickings,
|
|
152
|
+
# this shouldn't raise an error.
|
|
153
|
+
self.assertEqual(self.shipment_advice_out.state, "done")
|
|
152
154
|
# Check the transfer
|
|
153
155
|
self.assertTrue(
|
|
154
|
-
all(
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
156
|
+
all(move_line.picked for move_line in package_level.move_line_ids)
|
|
157
|
+
)
|
|
158
|
+
# move 1 is still on the dock
|
|
159
|
+
self.assertFalse(
|
|
160
|
+
any(move_line.picked for move_line in self.move_product_out1.move_line_ids)
|
|
158
161
|
)
|
|
159
162
|
self.assertEqual(picking.state, "assigned")
|
|
160
163
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: odoo-addon-shipment_advice
|
|
3
|
-
Version: 18.0.1.2.
|
|
3
|
+
Version: 18.0.1.2.1
|
|
4
4
|
Requires-Python: >=3.10
|
|
5
5
|
Requires-Dist: odoo-addon-queue_job==18.0.*
|
|
6
6
|
Requires-Dist: odoo-addon-stock_dock==18.0.*
|
|
@@ -29,7 +29,7 @@ Shipment Advice
|
|
|
29
29
|
!! This file is generated by oca-gen-addon-readme !!
|
|
30
30
|
!! changes will be overwritten. !!
|
|
31
31
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
32
|
-
!! source digest: sha256:
|
|
32
|
+
!! source digest: sha256:72426a62b77dd687b44481de0b8605bae555ac32da88e40a24aac717e376fe63
|
|
33
33
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
34
34
|
|
|
35
35
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
odoo/addons/shipment_advice/README.rst,sha256
|
|
1
|
+
odoo/addons/shipment_advice/README.rst,sha256=6y6pHDpIu9RFMqG7TnbWm_jgvzjOM3jv_8WzcfTn1u4,3724
|
|
2
2
|
odoo/addons/shipment_advice/__init__.py,sha256=0XNpxETgFdVxFDEw03O8oL3NtTSk3we-HEZW2sPKzIU,43
|
|
3
|
-
odoo/addons/shipment_advice/__manifest__.py,sha256=
|
|
3
|
+
odoo/addons/shipment_advice/__manifest__.py,sha256=OLW2Ek9sZli5QluRZqbVjgAjt6hVvn7pvM6-3AQnHSQ,1329
|
|
4
4
|
odoo/addons/shipment_advice/data/ir_sequence.xml,sha256=7y13W1xPr3o_deB6s5a_UHSJGMpFGCA8JTc7xI5L0-c,1066
|
|
5
5
|
odoo/addons/shipment_advice/data/queue_job_channel.xml,sha256=HTEQATvxEq52hjDeYG0PjLOdMtMIDSGNAVFbGCaJKWQ,362
|
|
6
6
|
odoo/addons/shipment_advice/data/queue_job_function.xml,sha256=wH4AFoMRWdex1ukhstYBQ2TBE2lgyCrOr0OFOqRyRvE,1220
|
|
@@ -10,11 +10,11 @@ odoo/addons/shipment_advice/i18n/fr.po,sha256=s3RFI4rMM7ogYlYQ9ab7WPe6-ynaztJ4Ps
|
|
|
10
10
|
odoo/addons/shipment_advice/i18n/it.po,sha256=cwCFkJ4KpVrKADpoZY8_2feeKlwq7YUbLzV9VqJSqro,62723
|
|
11
11
|
odoo/addons/shipment_advice/i18n/nl.po,sha256=lYuZ75TsYR4SQzoRB0cupZcwVkpgq9UoEJUfJPJKyhc,60507
|
|
12
12
|
odoo/addons/shipment_advice/i18n/pt_BR.po,sha256=Og3_6e5Yuwr1ahGp10xy4XzPwJdxRvBhmWRAFXGV8Jc,48497
|
|
13
|
-
odoo/addons/shipment_advice/i18n/shipment_advice.pot,sha256=
|
|
13
|
+
odoo/addons/shipment_advice/i18n/shipment_advice.pot,sha256=nTVP49m7kgxD4ajoD61fNtRuRqGb3Z3bw0Vw1gZer5Y,48403
|
|
14
14
|
odoo/addons/shipment_advice/models/__init__.py,sha256=kvmDs7RDo8Tnvv0w_2GcxgVcw9nATFSixZ1tFlVNNz8,207
|
|
15
15
|
odoo/addons/shipment_advice/models/res_company.py,sha256=PXjmBwOvjDagL2xLA0JBD40E1cBJVyh_lVQc3R1I5tk,1669
|
|
16
16
|
odoo/addons/shipment_advice/models/res_config_settings.py,sha256=VGgAvuRnmaN2EoV3fZPdqW3gOJeKtFJX5w3R8cLHYeE,727
|
|
17
|
-
odoo/addons/shipment_advice/models/shipment_advice.py,sha256=
|
|
17
|
+
odoo/addons/shipment_advice/models/shipment_advice.py,sha256=bnREalePGOggK95if7yO08KHlaoRTJ2rZUpVSjuYFA0,24584
|
|
18
18
|
odoo/addons/shipment_advice/models/stock_move.py,sha256=P6dman_04CcGZkQmfzcAn0O7DgR0FLrugCuVPW4IMtA,1237
|
|
19
19
|
odoo/addons/shipment_advice/models/stock_move_line.py,sha256=3XANFzV5ZTw2ova-YMTGiYGcpf4GNDdai_elGsbdD6Q,5503
|
|
20
20
|
odoo/addons/shipment_advice/models/stock_package_level.py,sha256=1OIYyfDho9pE6VB7PJHgSd7FIEwQRF-w4_DSdlzzV4A,1973
|
|
@@ -25,11 +25,11 @@ odoo/addons/shipment_advice/report/report_shipment_advice.xml,sha256=Wxxuwn_5-2d
|
|
|
25
25
|
odoo/addons/shipment_advice/report/reports.xml,sha256=8LeKVB1M0a4gsLyrwd68RMnxoUw0xCYIn2KN4jlCuLA,1523
|
|
26
26
|
odoo/addons/shipment_advice/security/ir.model.access.csv,sha256=FeiNV6yP6OOOwJw2MHyo1B3TQQ-umOz75A7QAlCTPZs,657
|
|
27
27
|
odoo/addons/shipment_advice/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
|
28
|
-
odoo/addons/shipment_advice/static/description/index.html,sha256
|
|
28
|
+
odoo/addons/shipment_advice/static/description/index.html,sha256=RtqzSosxEowDSEYsulGKm0uP0RvZMIGQeaKR6vhur48,14037
|
|
29
29
|
odoo/addons/shipment_advice/tests/__init__.py,sha256=gGcrYVRWM0XICyYe-pAQ0EujlhZh99__ouu5-6LzrOM,383
|
|
30
30
|
odoo/addons/shipment_advice/tests/common.py,sha256=DVbphKo9ooNPIPc6IBfBW5SGRUtI-V-JDCxMtHt7oew,7971
|
|
31
|
-
odoo/addons/shipment_advice/tests/test_shipment_advice.py,sha256
|
|
32
|
-
odoo/addons/shipment_advice/tests/test_shipment_advice_async.py,sha256=
|
|
31
|
+
odoo/addons/shipment_advice/tests/test_shipment_advice.py,sha256=1pv065rvJD36xhirWhvUNPbD1C_1mJUoG7MoGrUUTSM,7849
|
|
32
|
+
odoo/addons/shipment_advice/tests/test_shipment_advice_async.py,sha256=EtZ2FjEgNGgXs_MCA38AG1mmzxdOLDNkLkDsCjPga2M,14779
|
|
33
33
|
odoo/addons/shipment_advice/tests/test_shipment_advice_auto_close.py,sha256=QHSAPsJH9p2NPMEo7gEAHrMBwRbPcr6RyG5bhsXNU38,2047
|
|
34
34
|
odoo/addons/shipment_advice/tests/test_shipment_advice_load.py,sha256=ew8npNZcrsF6XfroL6X89GqRlaZDnG2yTQXI0xj2_r0,8444
|
|
35
35
|
odoo/addons/shipment_advice/tests/test_shipment_advice_picking_values.py,sha256=AQ55nwfQKAIZdDyOml2VFkNtsWxpmo8cQt2DqfLJC_o,766
|
|
@@ -52,7 +52,7 @@ odoo/addons/shipment_advice/wizards/unload_shipment.py,sha256=sKmirRidiwZd3tqnVE
|
|
|
52
52
|
odoo/addons/shipment_advice/wizards/unload_shipment.xml,sha256=wfXlLjTbA8t3g--jm9QJEBelgH1NqEU64_3FbX41bOk,1348
|
|
53
53
|
odoo/addons/shipment_advice/wizards/unplan_shipment.py,sha256=DjBJRq380zxgiOwvcvpnps5cVWWC6b5TfpvRE8UY74U,4205
|
|
54
54
|
odoo/addons/shipment_advice/wizards/unplan_shipment.xml,sha256=dzMRdRGLZ1-WX_--BzArkBYh9cbEn0B8sKllGj2AkDE,1513
|
|
55
|
-
odoo_addon_shipment_advice-18.0.1.2.
|
|
56
|
-
odoo_addon_shipment_advice-18.0.1.2.
|
|
57
|
-
odoo_addon_shipment_advice-18.0.1.2.
|
|
58
|
-
odoo_addon_shipment_advice-18.0.1.2.
|
|
55
|
+
odoo_addon_shipment_advice-18.0.1.2.1.dist-info/METADATA,sha256=O9F7W47qI5bxOlGyGKz9tQzHWUtFB3JiOCs3EsikQ9U,4408
|
|
56
|
+
odoo_addon_shipment_advice-18.0.1.2.1.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
|
|
57
|
+
odoo_addon_shipment_advice-18.0.1.2.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
|
|
58
|
+
odoo_addon_shipment_advice-18.0.1.2.1.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|