odoo-addon-shopfloor 18.0.0.3.1__py3-none-any.whl → 18.0.0.4.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:ba88a2ff0fc8dc7ea2a811a9507ddb4144cef230f98b4cbb1a6b506edefe389f
14
+ !! source digest: sha256:18da2d0922f39feb5fd987c2133de7d50cfbdc21f6d61cd82e799cb95182bae6
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": "18.0.0.3.1",
9
+ "version": "18.0.0.4.0",
10
10
  "development_status": "Beta",
11
11
  "category": "Inventory",
12
12
  "website": "https://github.com/OCA/stock-logistics-shopfloor",
@@ -1,7 +1,7 @@
1
1
  # Copyright 2020 Camptocamp SA (http://www.camptocamp.com)
2
2
  # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3
3
  from odoo import _, fields
4
- from odoo.tools.float_utils import float_round
4
+ from odoo.tools.float_utils import float_compare, float_round
5
5
 
6
6
  from odoo.addons.component.core import Component
7
7
 
@@ -252,3 +252,16 @@ class StockAction(Component):
252
252
  # when no putaway is found, the move line destination stays the
253
253
  # default's of the picking type
254
254
  return any(line.location_dest_id in base_locations for line in move_lines)
255
+
256
+ def move_line_increment_qty_picked(self, move_line, packaging=False):
257
+ qty = packaging and packaging.qty or 1
258
+ move_line.qty_picked += qty
259
+
260
+ def move_line_check_qty_picked(self, move_line):
261
+ rounding = move_line.product_id.uom_id.rounding
262
+ qty_picked = move_line.qty_picked
263
+ qty_todo = move_line.quantity
264
+ # If qty picked is >= qty todo, then there's nothing more to pick
265
+ if float_compare(qty_picked, qty_todo, precision_rounding=rounding) > 0:
266
+ return False
267
+ return True
@@ -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:ba88a2ff0fc8dc7ea2a811a9507ddb4144cef230f98b4cbb1a6b506edefe389f
375
+ !! source digest: sha256:18da2d0922f39feb5fd987c2133de7d50cfbdc21f6d61cd82e799cb95182bae6
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-shopfloor/tree/18.0/shopfloor"><img alt="OCA/stock-logistics-shopfloor" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--shopfloor-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-shopfloor-18-0/stock-logistics-shopfloor-18-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/stock-logistics-shopfloor&amp;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>Shopfloor is a barcode scanner application for internal warehouse
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: odoo-addon-shopfloor
3
- Version: 18.0.0.3.1
3
+ Version: 18.0.0.4.0
4
4
  Requires-Python: >=3.10
5
5
  Requires-Dist: odoo-addon-base_rest==18.0.*
6
6
  Requires-Dist: odoo-addon-jsonifier==18.0.*
@@ -42,7 +42,7 @@ Shopfloor
42
42
  !! This file is generated by oca-gen-addon-readme !!
43
43
  !! changes will be overwritten. !!
44
44
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
45
- !! source digest: sha256:ba88a2ff0fc8dc7ea2a811a9507ddb4144cef230f98b4cbb1a6b506edefe389f
45
+ !! source digest: sha256:18da2d0922f39feb5fd987c2133de7d50cfbdc21f6d61cd82e799cb95182bae6
46
46
  !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
47
47
 
48
48
  .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -1,6 +1,6 @@
1
- odoo/addons/shopfloor/README.rst,sha256=-Hc6d6pxlXdCzqheiYYk6moSPEe6P0qxKv42ADAMEuI,6138
1
+ odoo/addons/shopfloor/README.rst,sha256=6jFu8T4E7daW_crxxPsI0tG-LhZapP_S4RMNOPEfFag,6138
2
2
  odoo/addons/shopfloor/__init__.py,sha256=ke3RmZ7XkX-lz4S8NHAxNIEJ5_Nvj5bjBAqD-W-q73c,91
3
- odoo/addons/shopfloor/__manifest__.py,sha256=apuuRwH0nXDJJ8podHpNQzXRen-B7PK259o7dFKBjIo,2572
3
+ odoo/addons/shopfloor/__manifest__.py,sha256=BsNXrwKnOHmt_Wir4-JNtg4oROPafHUR7PjFIpIJquM,2572
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=9mcpeYo1iFQPdt_F2wLkqK5nRpR_gkFaOTReaM2Q7r4,7014
20
- odoo/addons/shopfloor/actions/stock.py,sha256=oWy5QvZNv6IFbYhet0xtjV8T_bxrVi5UMy2-TIrUIko,11192
20
+ odoo/addons/shopfloor/actions/stock.py,sha256=KjE7jyUQ0OoLdusiF4PPTfstUWX5xfaeCwoioyaHr4k,11755
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
@@ -82,7 +82,7 @@ odoo/addons/shopfloor/services/zone_picking.py,sha256=BI25T234hcjlgGDIMjsO6PfDUK
82
82
  odoo/addons/shopfloor/services/forms/__init__.py,sha256=nxwJdKX47hb56ERf4Qb3UE5dkdsHCbkaXMAXs4XMAd8,27
83
83
  odoo/addons/shopfloor/services/forms/picking_form.py,sha256=pX1hbALlCqTVG3m1HYY5xtgbTcSHVnpaGaqm3akBS-U,2718
84
84
  odoo/addons/shopfloor/static/description/icon.png,sha256=6xBPJauaFOF0KDHfHgQopSc28kKvxMaeoQFQWZtfZDo,9455
85
- odoo/addons/shopfloor/static/description/index.html,sha256=CIM7XKUP900WQaicQfZz6OoRfT-p1ShIepEPKYE1Gdg,18540
85
+ odoo/addons/shopfloor/static/description/index.html,sha256=dprCSPujzJVNU6_LDHNZUb4mDg-rmODadUjENbgDoUo,18540
86
86
  odoo/addons/shopfloor/tests/__init__.py,sha256=8t1Eocv-42M2tzBAkG3Wa6tsfhZIUIgxOspm3hqRCd4,4012
87
87
  odoo/addons/shopfloor/tests/common.py,sha256=lFdSQRXBjwCr7StVJltEwLtA_a4V77JcBcKkGAnAL5M,11676
88
88
  odoo/addons/shopfloor/tests/models.py,sha256=PWNPC6DgFMbrarojSxUqwycnBdePX-4Q5Z0rn1WwQqY,940
@@ -183,7 +183,7 @@ odoo/addons/shopfloor/views/shopfloor_menu.xml,sha256=LK_XdKawKqXPTaE1tq4r5dXR62
183
183
  odoo/addons/shopfloor/views/stock_location.xml,sha256=d7iqbOQZbb5YPSdAXlQ6spcj8dUvQ37DpEGuaLX5B1M,829
184
184
  odoo/addons/shopfloor/views/stock_move_line.xml,sha256=AmIO95-G0AD5i5C3x_BQL_NARXvyCfe4mg9iM97wD1U,1996
185
185
  odoo/addons/shopfloor/views/stock_picking_type.xml,sha256=M3U8xijiL6ZJUx2IiYelIYECsCRtOCU1J6lwlWzx3Jo,778
186
- odoo_addon_shopfloor-18.0.0.3.1.dist-info/METADATA,sha256=KAzoXnLYJsO1nn3dxi3htUGhC7IL589REK-Pwi91fos,7580
187
- odoo_addon_shopfloor-18.0.0.3.1.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
188
- odoo_addon_shopfloor-18.0.0.3.1.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
189
- odoo_addon_shopfloor-18.0.0.3.1.dist-info/RECORD,,
186
+ odoo_addon_shopfloor-18.0.0.4.0.dist-info/METADATA,sha256=l7qaQJWVEmBnpeXx6NnXKyncdXAkw-PzaCVVLB7WElk,7580
187
+ odoo_addon_shopfloor-18.0.0.4.0.dist-info/WHEEL,sha256=ZhOvUsYhy81Dx67gN3TV0RchQWBIIzutDZaJODDg2Vo,81
188
+ odoo_addon_shopfloor-18.0.0.4.0.dist-info/top_level.txt,sha256=QE6RBQ0QX5f4eFuUcGgU5Kbq1A_qJcDs-e_vpr6pmfU,4
189
+ odoo_addon_shopfloor-18.0.0.4.0.dist-info/RECORD,,