odoo-addon-shopfloor 16.0.2.10.0.4__py3-none-any.whl → 16.0.2.11.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.
@@ -11,7 +11,7 @@ Shopfloor
11
11
  !! This file is generated by oca-gen-addon-readme !!
12
12
  !! changes will be overwritten. !!
13
13
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
14
- !! source digest: sha256:f6bf44c46907424c9adf6166901cdac6cda73038169d71fe37121d21ab72b2ea
14
+ !! source digest: sha256:45e38752c97272a2846012a4dfd2597a7df126607d2ec7e5ff0489e3477b63a5
15
15
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
16
16
 
17
17
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -6,7 +6,7 @@
6
6
  {
7
7
  "name": "Shopfloor",
8
8
  "summary": "manage warehouse operations with barcode scanners",
9
- "version": "16.0.2.10.0",
9
+ "version": "16.0.2.11.0",
10
10
  "development_status": "Beta",
11
11
  "category": "Inventory",
12
12
  "website": "https://github.com/OCA/wms",
@@ -108,7 +108,13 @@ class StockAction(Component):
108
108
  return picking.copy(return_values)
109
109
 
110
110
  def mark_move_line_as_picked(
111
- self, move_lines, quantity=None, package=None, user=None, check_user=False
111
+ self,
112
+ move_lines,
113
+ quantity=None,
114
+ package=None,
115
+ user=None,
116
+ check_user=False,
117
+ split=True,
112
118
  ):
113
119
  """Set the qty_done and extract lines in new order"""
114
120
  user = user or self.env.user
@@ -121,7 +127,8 @@ class StockAction(Component):
121
127
  for line in move_lines:
122
128
  qty_done = quantity if quantity is not None else line.reserved_uom_qty
123
129
  line.qty_done = qty_done
124
- line._split_partial_quantity()
130
+ if split:
131
+ line._split_partial_quantity()
125
132
  data = {
126
133
  "shopfloor_user_id": user.id,
127
134
  }
@@ -129,13 +136,19 @@ class StockAction(Component):
129
136
  # destination package is set to the scanned one
130
137
  data["result_package_id"] = package.id
131
138
  line.write(data)
139
+ values_assigned = {
140
+ "user_id": user.id,
141
+ "printed": True,
142
+ }
132
143
  # Extract the picked quantity in a split order and set current user
133
- move_lines._extract_in_split_order(
134
- {
135
- "user_id": user.id,
136
- "printed": True,
137
- }
138
- )
144
+ if split:
145
+ move_lines._extract_in_split_order(values_assigned)
146
+ else:
147
+ lines = move_lines.picking_id.filtered(
148
+ lambda picking: not picking.printed or not picking.user_id == user
149
+ )
150
+ if lines:
151
+ lines.write(values_assigned)
139
152
  move_lines.picking_id.filtered(lambda p: p.user_id != user).user_id = user.id
140
153
 
141
154
  def unmark_move_line_as_picked(self, move_lines):
@@ -611,7 +611,11 @@ class LocationContentTransfer(Component):
611
611
  "lot": self._scan_line__by_lot,
612
612
  "none": self._scan_line__fallback,
613
613
  }
614
- search_result = search.find(barcode, types=handlers.keys())
614
+ search_result = search.find(
615
+ barcode,
616
+ types=handlers.keys(),
617
+ handler_kw=dict(lot=dict(products=move_line.product_id)),
618
+ )
615
619
  handler = handlers.get(search_result.type, self._scan_line__fallback)
616
620
  # handler might've been called but returned no response.
617
621
  # I.E. package is scanned but doesn't matches move_line's package.
@@ -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:f6bf44c46907424c9adf6166901cdac6cda73038169d71fe37121d21ab72b2ea
375
+ !! source digest: sha256:45e38752c97272a2846012a4dfd2597a7df126607d2ec7e5ff0489e3477b63a5
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/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&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378
378
  <p>Shopfloor is a barcode scanner application for internal warehouse operations.</p>
@@ -78,6 +78,12 @@ class ClusterPickingScanLineCase(ClusterPickingLineCommonCase):
78
78
  self.product_a.tracking = "serial"
79
79
  self._simulate_batch_selected(self.batch, in_lot=True)
80
80
  line = self.batch.picking_ids.move_line_ids
81
+ lot = line.lot_id
82
+ self.assertTrue(lot)
83
+ lot_with_same_name = line.lot_id.copy(
84
+ {"product_id": self.product_b.id, "name": line.lot_id.name}
85
+ )
86
+ self.assertEqual(lot_with_same_name.name, lot.name)
81
87
  self._scan_line_ok(line, line.lot_id.name)
82
88
 
83
89
  def test_scan_line_error_product_tracked(self):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-shopfloor
3
- Version: 16.0.2.10.0.4
3
+ Version: 16.0.2.11.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)
@@ -40,7 +40,7 @@ Shopfloor
40
40
  !! This file is generated by oca-gen-addon-readme !!
41
41
  !! changes will be overwritten. !!
42
42
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
43
- !! source digest: sha256:f6bf44c46907424c9adf6166901cdac6cda73038169d71fe37121d21ab72b2ea
43
+ !! source digest: sha256:45e38752c97272a2846012a4dfd2597a7df126607d2ec7e5ff0489e3477b63a5
44
44
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
45
45
 
46
46
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,6 +1,6 @@
1
- odoo/addons/shopfloor/README.rst,sha256=0S60RgLckeHyurIG3uPgoJUZNN5RiQbQecsJ_O8iDCo,5483
1
+ odoo/addons/shopfloor/README.rst,sha256=SD6Nm8JyCEqH0FWIypev8_qsuwz61bGsabtHftcROgk,5483
2
2
  odoo/addons/shopfloor/__init__.py,sha256=ke3RmZ7XkX-lz4S8NHAxNIEJ5_Nvj5bjBAqD-W-q73c,91
3
- odoo/addons/shopfloor/__manifest__.py,sha256=m37x2lUj-wnM5ZjMiRsgM9HQ0YhZcWvCPbeEsCkP0vg,2246
3
+ odoo/addons/shopfloor/__manifest__.py,sha256=mJFLUuxmWbHC1AXldD_HZ915M0rmFbh71s7q1EVu7eo,2246
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
@@ -17,7 +17,7 @@ odoo/addons/shopfloor/actions/savepoint.py,sha256=bIpPUPg-2BbO8hz277kWnq4DP_cayh
17
17
  odoo/addons/shopfloor/actions/schema.py,sha256=H_4HCaYB7HiqU35WO2NmHtOLJ087iFLbiJD4HdiHFjU,8555
18
18
  odoo/addons/shopfloor/actions/schema_detail.py,sha256=_xtm8ptRXAPBIMTyr8XKMQtogcjBudh-QRqKUZEEHGU,4968
19
19
  odoo/addons/shopfloor/actions/search.py,sha256=8AvMOyxUd9iY_Cb84TccW4i5EfvUhIBQzOiLN4Y1Bcw,6856
20
- odoo/addons/shopfloor/actions/stock.py,sha256=mhAwsAGFZjV8PZ3QjLIz8tsRAm3u3S3_7yiONmkaZM0,10762
20
+ odoo/addons/shopfloor/actions/stock.py,sha256=5TUJa--aFlD5Y_atRQvWzbzicUrnE8CHd4v6xuZg6dY,11109
21
21
  odoo/addons/shopfloor/actions/stock_unreserve.py,sha256=P0a9V53MqG4sDln8yX0Id-nEXz7cydiFY_BBznioQpg,3090
22
22
  odoo/addons/shopfloor/components/__init__.py,sha256=a3ox1WOD1JhrQUrYMRn-yDJI0Vvc7ciKdmXuZB29ToU,173
23
23
  odoo/addons/shopfloor/components/scan_handler_location.py,sha256=LImiaG4L4xBKUFWZLSnJV-eSCvj_NCDCM5GqZSnsPmE,825
@@ -76,7 +76,7 @@ odoo/addons/shopfloor/services/__init__.py,sha256=4lhF0VNx8QosVEZj9QJYgv6oWD0kl9
76
76
  odoo/addons/shopfloor/services/checkout.py,sha256=dIlYeSXkudk2kiN4VF0Z6c7qfF3BYtxLw-vMK1xzc94,82073
77
77
  odoo/addons/shopfloor/services/cluster_picking.py,sha256=ZD0MPqMGqa4F1tOdIUHLogE3Ip7qr7ZUSWVRgYzvVSA,68721
78
78
  odoo/addons/shopfloor/services/delivery.py,sha256=NlGRvICguH6ZI4KuofDXv602u7Owv0OMKljkzetaoVI,34466
79
- odoo/addons/shopfloor/services/location_content_transfer.py,sha256=8jyIpnkSiQTdNQR-rguL5MDys4wlo-iUDeHhaivRkdY,50334
79
+ odoo/addons/shopfloor/services/location_content_transfer.py,sha256=V8rbC0JnQo8w_9LXzG80QYiwXCOdnX1MSzTWQ3SF874,50439
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=oTYAPM3zwm5gWgEJyBsbQlq0AODPq9T8LPwt39NTUBw,6438
@@ -85,7 +85,7 @@ odoo/addons/shopfloor/services/zone_picking.py,sha256=9GFw2AKBFFci8Erb8UyTAYuCI9
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=SKCFZQLRUB_eBy8pk6SitD328yEfWVGqNRX5Cm4iB-Q,17775
88
+ odoo/addons/shopfloor/static/description/index.html,sha256=fj3jFK6gLAvCtRo21aKnQr0S9S1_ctjXJBaV_WwoGDI,17775
89
89
  odoo/addons/shopfloor/tests/__init__.py,sha256=4WHuLVjOX_lndDJyuyGcreNckArFJL2HA5PPFlhT6FM,3962
90
90
  odoo/addons/shopfloor/tests/common.py,sha256=nU-1CYbAi2hoI2jFIcw6udgl1ave_IGJciyOZ9DeiAE,11610
91
91
  odoo/addons/shopfloor/tests/models.py,sha256=PWNPC6DgFMbrarojSxUqwycnBdePX-4Q5Z0rn1WwQqY,940
@@ -124,7 +124,7 @@ odoo/addons/shopfloor/tests/test_cluster_picking_change_pack_lot.py,sha256=S2fUP
124
124
  odoo/addons/shopfloor/tests/test_cluster_picking_is_zero.py,sha256=8cpEDTRmA38cxNZoD9pKoiThVZ6D2mxjt30QjCLuU2M,3330
125
125
  odoo/addons/shopfloor/tests/test_cluster_picking_scan_destination.py,sha256=aw7EpfGkKINj0KZfnYhDhyeBImx6wlkGPwhhYYVBsKw,14201
126
126
  odoo/addons/shopfloor/tests/test_cluster_picking_scan_destination_no_prefill_qty.py,sha256=hboVxHXNFqZ0DDTBqUBW9r6Dq428Vq5uj7fgaGIdPAg,4464
127
- odoo/addons/shopfloor/tests/test_cluster_picking_scan_line.py,sha256=urAU4AhLX-GCcXqpJEG-mbiy63lXwzbtf4J5jZ-IiaA,15410
127
+ odoo/addons/shopfloor/tests/test_cluster_picking_scan_line.py,sha256=bHOK4eraF83SBYWCbu4lcJfJ7VYw0XgEDQaKMHn_wBY,15654
128
128
  odoo/addons/shopfloor/tests/test_cluster_picking_scan_line_location_or_pack_first.py,sha256=cYzOtirVzMJUgO8oElrrRikq8ML1HXuHidBmEdVeL7M,4434
129
129
  odoo/addons/shopfloor/tests/test_cluster_picking_scan_line_no_prefill_qty.py,sha256=xf2QXXovehcbvmuTek20qbDP4gUiLgPpw8XkFNN3Cds,2905
130
130
  odoo/addons/shopfloor/tests/test_cluster_picking_select.py,sha256=BvuQznmCtOAipvgEhiUiTyeKR6nDkC5u9hCUZIF7MEc,15240
@@ -187,7 +187,7 @@ odoo/addons/shopfloor/views/shopfloor_menu.xml,sha256=rKXjj0Jk8gjda1y1B6d1_s3sn0
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.10.0.4.dist-info/METADATA,sha256=YLONDhNF0hgJzzx-4QOtSldcDMVj3OyOKtND4FRWNxU,6929
191
- odoo_addon_shopfloor-16.0.2.10.0.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
192
- odoo_addon_shopfloor-16.0.2.10.0.4.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
193
- odoo_addon_shopfloor-16.0.2.10.0.4.dist-info/RECORD,,
190
+ odoo_addon_shopfloor-16.0.2.11.0.dist-info/METADATA,sha256=LwYhRbtI0CZnKnLFTokY5mjFl4hsajNPSGVGv6_1f-4,6927
191
+ odoo_addon_shopfloor-16.0.2.11.0.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
192
+ odoo_addon_shopfloor-16.0.2.11.0.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
193
+ odoo_addon_shopfloor-16.0.2.11.0.dist-info/RECORD,,