odoo-addon-shopfloor 16.0.2.5.0.2__py3-none-any.whl → 16.0.2.6.0__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/shopfloor/README.rst +1 -1
- odoo/addons/shopfloor/__manifest__.py +1 -1
- odoo/addons/shopfloor/services/cluster_picking.py +24 -8
- odoo/addons/shopfloor/services/zone_picking.py +13 -9
- odoo/addons/shopfloor/static/description/index.html +1 -1
- odoo/addons/shopfloor/tests/test_cluster_picking_scan_destination_no_prefill_qty.py +6 -4
- {odoo_addon_shopfloor-16.0.2.5.0.2.dist-info → odoo_addon_shopfloor-16.0.2.6.0.dist-info}/METADATA +2 -2
- {odoo_addon_shopfloor-16.0.2.5.0.2.dist-info → odoo_addon_shopfloor-16.0.2.6.0.dist-info}/RECORD +10 -10
- {odoo_addon_shopfloor-16.0.2.5.0.2.dist-info → odoo_addon_shopfloor-16.0.2.6.0.dist-info}/WHEEL +0 -0
- {odoo_addon_shopfloor-16.0.2.5.0.2.dist-info → odoo_addon_shopfloor-16.0.2.6.0.dist-info}/top_level.txt +0 -0
odoo/addons/shopfloor/README.rst
CHANGED
@@ -7,7 +7,7 @@ Shopfloor
|
|
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:15590a835f281c13f0eae031c50d19d04ab77e94ee95b697d5eabd04373c21ce
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
12
12
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
@@ -695,16 +695,32 @@ class ClusterPicking(Component):
|
|
695
695
|
if not product:
|
696
696
|
packaging = search.packaging_from_scan(barcode)
|
697
697
|
product = packaging.product_id
|
698
|
-
if product
|
699
|
-
|
700
|
-
|
701
|
-
|
698
|
+
if product:
|
699
|
+
if move_line.product_id == product:
|
700
|
+
quantity += packaging.qty or 1.0
|
701
|
+
response = self._response_for_scan_destination(
|
702
|
+
move_line, qty_done=quantity
|
703
|
+
)
|
704
|
+
return response
|
705
|
+
return self._response_for_scan_destination(
|
706
|
+
move_line,
|
707
|
+
message=self.msg_store.wrong_record(product),
|
708
|
+
qty_done=quantity,
|
709
|
+
)
|
702
710
|
# Handle barcode of a lot
|
703
711
|
lot = search.lot_from_scan(barcode)
|
704
|
-
if lot
|
705
|
-
|
706
|
-
|
707
|
-
|
712
|
+
if lot:
|
713
|
+
if move_line.lot_id == lot:
|
714
|
+
quantity += 1.0
|
715
|
+
response = self._response_for_scan_destination(
|
716
|
+
move_line, qty_done=quantity
|
717
|
+
)
|
718
|
+
return response
|
719
|
+
return self._response_for_scan_destination(
|
720
|
+
move_line,
|
721
|
+
message=self.msg_store.wrong_record(lot),
|
722
|
+
qty_done=quantity,
|
723
|
+
)
|
708
724
|
return response
|
709
725
|
|
710
726
|
def scan_destination_pack(self, picking_batch_id, move_line_id, barcode, quantity):
|
@@ -894,29 +894,25 @@ class ZonePicking(Component):
|
|
894
894
|
base_response=response, message=self.msg_store.barcode_not_found()
|
895
895
|
)
|
896
896
|
|
897
|
-
def
|
897
|
+
def _check_set_destination_location(
|
898
898
|
self, move_line, package, quantity, confirmation, location, barcode
|
899
899
|
):
|
900
|
-
location_changed = False
|
901
|
-
response = None
|
902
|
-
|
903
900
|
# A valid location is a sub-location of the original destination, or a
|
904
901
|
# any sub-location of the picking type's default destination location
|
905
902
|
# if `confirmation is equal to the barcode scanned.
|
906
903
|
# Ask confirmation to the user if the scanned location is not in the
|
907
904
|
# expected ones but is valid (in picking type's default destination)
|
908
905
|
if not self.is_dest_location_valid(move_line.move_id, location):
|
909
|
-
|
906
|
+
return self._response_for_set_line_destination(
|
910
907
|
move_line,
|
911
908
|
message=self.msg_store.dest_location_not_allowed(),
|
912
909
|
qty_done=quantity,
|
913
910
|
)
|
914
|
-
return (location_changed, response)
|
915
911
|
|
916
912
|
if confirmation != barcode and self.is_dest_location_to_confirm(
|
917
913
|
move_line.location_dest_id, location
|
918
914
|
):
|
919
|
-
|
915
|
+
return self._response_for_set_line_destination(
|
920
916
|
move_line,
|
921
917
|
message=self.msg_store.confirm_location_changed(
|
922
918
|
move_line.location_dest_id, location
|
@@ -924,15 +920,23 @@ class ZonePicking(Component):
|
|
924
920
|
confirmation_required=barcode,
|
925
921
|
qty_done=quantity,
|
926
922
|
)
|
927
|
-
return (location_changed, response)
|
928
923
|
|
929
924
|
# If no destination package
|
930
925
|
if self._packing_required() and not move_line.result_package_id:
|
931
|
-
|
926
|
+
return self._response_for_set_line_destination(
|
932
927
|
move_line,
|
933
928
|
message=self.msg_store.dest_package_required(),
|
934
929
|
qty_done=quantity,
|
935
930
|
)
|
931
|
+
|
932
|
+
def _set_destination_location(
|
933
|
+
self, move_line, package, quantity, confirmation, location, barcode
|
934
|
+
):
|
935
|
+
location_changed = False
|
936
|
+
response = self._check_set_destination_location(
|
937
|
+
move_line, package, quantity, confirmation, location, barcode
|
938
|
+
)
|
939
|
+
if response:
|
936
940
|
return (location_changed, response)
|
937
941
|
# destination location set to the scanned one
|
938
942
|
|
@@ -367,7 +367,7 @@ 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:15590a835f281c13f0eae031c50d19d04ab77e94ee95b697d5eabd04373c21ce
|
371
371
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
372
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/wms/tree/16.0/shopfloor"><img alt="OCA/wms" src="https://img.shields.io/badge/github-OCA%2Fwms-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/wms-16-0/wms-16-0-shopfloor"><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/wms&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
373
373
|
<p>Shopfloor is a barcode scanner application for internal warehouse operations.</p>
|
@@ -1,4 +1,5 @@
|
|
1
1
|
# Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
|
2
|
+
# Copyright 2024 Michael Tietz (MT Software) <mtietz@mt-software.de>
|
2
3
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
4
|
|
4
5
|
from .test_cluster_picking_base import ClusterPickingCommonCase
|
@@ -78,15 +79,16 @@ class ClusterPickingScanDestinationPackPrefillQtyCase(ClusterPickingCommonCase):
|
|
78
79
|
)
|
79
80
|
# Ensure the qty has not changed.
|
80
81
|
self.assertEqual(line.qty_done, previous_qty_done)
|
81
|
-
|
82
|
+
new_move_line = self.env["stock.move.line"].search(
|
83
|
+
[("move_id", "=", line.move_id.id), ("id", ">", line.id)]
|
84
|
+
)
|
85
|
+
self.assertFalse(new_move_line)
|
82
86
|
expected_qty_done = qty_done
|
83
87
|
self.assert_response(
|
84
88
|
response,
|
85
89
|
next_state="scan_destination",
|
86
90
|
data=self._line_data(line, qty_done=expected_qty_done),
|
87
|
-
message=self.service.msg_store.
|
88
|
-
self.product_b.barcode
|
89
|
-
),
|
91
|
+
message=self.service.msg_store.wrong_record(self.product_b),
|
90
92
|
)
|
91
93
|
|
92
94
|
def test_scan_destination_pack_increment_with_packaging(self):
|
{odoo_addon_shopfloor-16.0.2.5.0.2.dist-info → odoo_addon_shopfloor-16.0.2.6.0.dist-info}/METADATA
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo-addon-shopfloor
|
3
|
-
Version: 16.0.2.
|
3
|
+
Version: 16.0.2.6.0
|
4
4
|
Summary: manage warehouse operations with barcode scanners
|
5
5
|
Home-page: https://github.com/OCA/wms
|
6
6
|
Author: Camptocamp, BCIM, Akretion, Odoo Community Association (OCA)
|
@@ -36,7 +36,7 @@ Shopfloor
|
|
36
36
|
!! This file is generated by oca-gen-addon-readme !!
|
37
37
|
!! changes will be overwritten. !!
|
38
38
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
39
|
-
!! source digest: sha256:
|
39
|
+
!! source digest: sha256:15590a835f281c13f0eae031c50d19d04ab77e94ee95b697d5eabd04373c21ce
|
40
40
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
41
41
|
|
42
42
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
{odoo_addon_shopfloor-16.0.2.5.0.2.dist-info → odoo_addon_shopfloor-16.0.2.6.0.dist-info}/RECORD
RENAMED
@@ -1,6 +1,6 @@
|
|
1
|
-
odoo/addons/shopfloor/README.rst,sha256=
|
1
|
+
odoo/addons/shopfloor/README.rst,sha256=3hKplmB-AMWU6_RI_K4a0RgPmBljXpwkJiI3h-egmbg,5318
|
2
2
|
odoo/addons/shopfloor/__init__.py,sha256=ke3RmZ7XkX-lz4S8NHAxNIEJ5_Nvj5bjBAqD-W-q73c,91
|
3
|
-
odoo/addons/shopfloor/__manifest__.py,sha256=
|
3
|
+
odoo/addons/shopfloor/__manifest__.py,sha256=P0iMMOUCqm10sQWbhO2ukoDxBb5DQqsnEBeZ9kyY6wk,2245
|
4
4
|
odoo/addons/shopfloor/exceptions.py,sha256=81KpIGVkuYRhA0cIuml4pg4G3izqkAAhLqoXZbUd4X8,197
|
5
5
|
odoo/addons/shopfloor/utils.py,sha256=Be7J8Tu7ivOW4lpe8IjKxwqfTwfmK-ZkeFEavoYIIF4,375
|
6
6
|
odoo/addons/shopfloor/actions/__init__.py,sha256=_yTf-NtaJmSylBJIoJJvKNYEI-wlqpyRw-S5eJRRzEM,400
|
@@ -74,18 +74,18 @@ odoo/addons/shopfloor/readme/USAGE.rst,sha256=6Of9b6ec7gH1SKhdpBIaavsON0JWBFAzhb
|
|
74
74
|
odoo/addons/shopfloor/security/groups.xml,sha256=hdLqRUZM_4RQnleinRYhxDxqW4VOI5li4oTsB7m96LQ,578
|
75
75
|
odoo/addons/shopfloor/services/__init__.py,sha256=4lhF0VNx8QosVEZj9QJYgv6oWD0kl9FX80rL5WMrXf4,303
|
76
76
|
odoo/addons/shopfloor/services/checkout.py,sha256=GbkSbmpgYzdBhYw-k2iqCHUHr9P5sJJDKkxddqmcR0k,79693
|
77
|
-
odoo/addons/shopfloor/services/cluster_picking.py,sha256=
|
77
|
+
odoo/addons/shopfloor/services/cluster_picking.py,sha256=lpAzEDtByYSgZCkZvScYKULe8hlsliZH9A1UMQAd5mw,68729
|
78
78
|
odoo/addons/shopfloor/services/delivery.py,sha256=ko2xre3q-P2LaGd4CMKFWJoavk9QXTI8WKXghf8PoL0,33226
|
79
79
|
odoo/addons/shopfloor/services/location_content_transfer.py,sha256=gn-8W_u2tFT-A69Cot8B6CKG6pFB_21EjC2MYisfDME,49472
|
80
80
|
odoo/addons/shopfloor/services/menu.py,sha256=m1eNOReTda_xD-p-m8k2Pn5cJQOLWTiaBGW46zxsYsk,2354
|
81
81
|
odoo/addons/shopfloor/services/picking_batch.py,sha256=w51R5HHkQxCHle72k28VetXKfIRRh5GTaEXv6mhikvQ,4649
|
82
82
|
odoo/addons/shopfloor/services/service.py,sha256=HuxZZQ5MxnvDtr89HWQW2muuPvEF4vjI9ArdSFeAxg8,4882
|
83
83
|
odoo/addons/shopfloor/services/single_pack_transfer.py,sha256=S9zZ027fclqUBvqqFHMnD1QcbUb_dYyCtWs1E4pOAV4,16120
|
84
|
-
odoo/addons/shopfloor/services/zone_picking.py,sha256=
|
84
|
+
odoo/addons/shopfloor/services/zone_picking.py,sha256=I_yZOR4Xn5loWTQi6Nm65PTb2ARzZNHk7LoU4GdiaUA,83960
|
85
85
|
odoo/addons/shopfloor/services/forms/__init__.py,sha256=nxwJdKX47hb56ERf4Qb3UE5dkdsHCbkaXMAXs4XMAd8,27
|
86
86
|
odoo/addons/shopfloor/services/forms/picking_form.py,sha256=F15G5yw78Pd1WgPjMz00-K1JyGaTdfdvVYzG4Dubpqk,2626
|
87
87
|
odoo/addons/shopfloor/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
|
88
|
-
odoo/addons/shopfloor/static/description/index.html,sha256=
|
88
|
+
odoo/addons/shopfloor/static/description/index.html,sha256=yVSAuJbZ8QPag5I_C6Xor2gc60BwinBqMaI1M8vjvgQ,17547
|
89
89
|
odoo/addons/shopfloor/tests/__init__.py,sha256=4WHuLVjOX_lndDJyuyGcreNckArFJL2HA5PPFlhT6FM,3962
|
90
90
|
odoo/addons/shopfloor/tests/common.py,sha256=v1C7DQT-MvTk81xIYyv--c1BaIpwbia2ey8s35nvrK4,11611
|
91
91
|
odoo/addons/shopfloor/tests/models.py,sha256=jNbYUqYLxkbQMn4j8bejHM3l6CRThJBDfpATl8H83OM,939
|
@@ -123,7 +123,7 @@ odoo/addons/shopfloor/tests/test_cluster_picking_batch.py,sha256=uqNDKYFi2T8fwdW
|
|
123
123
|
odoo/addons/shopfloor/tests/test_cluster_picking_change_pack_lot.py,sha256=S2fUP545A3TO6xWYFyHvDi4sNnb4UgyTNghUfbQ_TZw,4157
|
124
124
|
odoo/addons/shopfloor/tests/test_cluster_picking_is_zero.py,sha256=VsNhviyfg6uRA6dM6Sv2H2TNBA7_RjEnoJWtvQ9SkHw,3496
|
125
125
|
odoo/addons/shopfloor/tests/test_cluster_picking_scan_destination.py,sha256=ypirEJupF_sdn-nUxXfG2SCkS9LLb8dheYQHCxEbP8k,14381
|
126
|
-
odoo/addons/shopfloor/tests/test_cluster_picking_scan_destination_no_prefill_qty.py,sha256=
|
126
|
+
odoo/addons/shopfloor/tests/test_cluster_picking_scan_destination_no_prefill_qty.py,sha256=hboVxHXNFqZ0DDTBqUBW9r6Dq428Vq5uj7fgaGIdPAg,4464
|
127
127
|
odoo/addons/shopfloor/tests/test_cluster_picking_scan_line.py,sha256=urAU4AhLX-GCcXqpJEG-mbiy63lXwzbtf4J5jZ-IiaA,15410
|
128
128
|
odoo/addons/shopfloor/tests/test_cluster_picking_scan_line_location_or_pack_first.py,sha256=Gsqq0vOjCg14G5ABk9KbVdZpqYX8SHCzhh-JxuOI0Nk,4440
|
129
129
|
odoo/addons/shopfloor/tests/test_cluster_picking_scan_line_no_prefill_qty.py,sha256=xf2QXXovehcbvmuTek20qbDP4gUiLgPpw8XkFNN3Cds,2905
|
@@ -187,7 +187,7 @@ odoo/addons/shopfloor/views/shopfloor_menu.xml,sha256=gepRIcpP6xuYypagEfpJm1s9-A
|
|
187
187
|
odoo/addons/shopfloor/views/stock_location.xml,sha256=d7iqbOQZbb5YPSdAXlQ6spcj8dUvQ37DpEGuaLX5B1M,829
|
188
188
|
odoo/addons/shopfloor/views/stock_move_line.xml,sha256=tn3pV67aRoYmn3qkm3aSgdYArY-z9SIrl_4fpJFy3Jo,1984
|
189
189
|
odoo/addons/shopfloor/views/stock_picking_type.xml,sha256=Ckn2835hO4HtuZQX9x3382C4gs789fb94Cx0444mBkc,800
|
190
|
-
odoo_addon_shopfloor-16.0.2.
|
191
|
-
odoo_addon_shopfloor-16.0.2.
|
192
|
-
odoo_addon_shopfloor-16.0.2.
|
193
|
-
odoo_addon_shopfloor-16.0.2.
|
190
|
+
odoo_addon_shopfloor-16.0.2.6.0.dist-info/METADATA,sha256=swGnD-kWIlO0frhPKg_ipcDLFQ9oIvLMCpqq7WfWCBA,6761
|
191
|
+
odoo_addon_shopfloor-16.0.2.6.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
192
|
+
odoo_addon_shopfloor-16.0.2.6.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
193
|
+
odoo_addon_shopfloor-16.0.2.6.0.dist-info/RECORD,,
|
{odoo_addon_shopfloor-16.0.2.5.0.2.dist-info → odoo_addon_shopfloor-16.0.2.6.0.dist-info}/WHEEL
RENAMED
File without changes
|
File without changes
|