odoo-addon-shopfloor 16.0.2.10.1__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:3b3e7f94a81872e7868a889ce80740558ad70732df2821188971ff06a639e995
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.1",
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):
@@ -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:3b3e7f94a81872e7868a889ce80740558ad70732df2821188971ff06a639e995
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>
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-shopfloor
3
- Version: 16.0.2.10.1
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:3b3e7f94a81872e7868a889ce80740558ad70732df2821188971ff06a639e995
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=D3OjlLOup8oQlS52jiTd2kMoogVcJIy3WwQzu29um6w,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=5WSR1SQH0zI3PtOqoBMj2KaehCzYaXq5S3s7xMnwmaw,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
@@ -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=XfEe9kuWu6sJXPygow9YoykFqiUw8IrfPoQuPsgX0JQ,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
@@ -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.1.dist-info/METADATA,sha256=tFC5kwKHiWn2kNX_DqkRIg0GruHpdBOQ0h_vMxqQ__4,6927
191
- odoo_addon_shopfloor-16.0.2.10.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
192
- odoo_addon_shopfloor-16.0.2.10.1.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
193
- odoo_addon_shopfloor-16.0.2.10.1.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,,