odoo-addon-stock-barcodes 15.0.3.1.2__py3-none-any.whl → 15.0.3.1.4__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/stock_barcodes/README.rst +1 -1
- odoo/addons/stock_barcodes/__manifest__.py +1 -1
- odoo/addons/stock_barcodes/models/stock_picking.py +33 -1
- odoo/addons/stock_barcodes/static/description/index.html +1 -1
- odoo/addons/stock_barcodes/wizard/stock_barcodes_read_picking.py +9 -13
- {odoo_addon_stock_barcodes-15.0.3.1.2.dist-info → odoo_addon_stock_barcodes-15.0.3.1.4.dist-info}/METADATA +2 -2
- {odoo_addon_stock_barcodes-15.0.3.1.2.dist-info → odoo_addon_stock_barcodes-15.0.3.1.4.dist-info}/RECORD +9 -9
- {odoo_addon_stock_barcodes-15.0.3.1.2.dist-info → odoo_addon_stock_barcodes-15.0.3.1.4.dist-info}/WHEEL +0 -0
- {odoo_addon_stock_barcodes-15.0.3.1.2.dist-info → odoo_addon_stock_barcodes-15.0.3.1.4.dist-info}/top_level.txt +0 -0
@@ -7,7 +7,7 @@ Stock Barcodes
|
|
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:f692c55757adbbf2d2aabb8b7a8572eff5dfdae5695521e950f3feef795da443
|
11
11
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
12
12
|
|
13
13
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
@@ -3,7 +3,7 @@
|
|
3
3
|
{
|
4
4
|
"name": "Stock Barcodes",
|
5
5
|
"summary": "It provides read barcode on stock operations.",
|
6
|
-
"version": "15.0.3.1.
|
6
|
+
"version": "15.0.3.1.4",
|
7
7
|
"author": "Tecnativa, " "Odoo Community Association (OCA)",
|
8
8
|
"website": "https://github.com/OCA/stock-logistics-barcode",
|
9
9
|
"license": "AGPL-3",
|
@@ -1,6 +1,7 @@
|
|
1
1
|
# Copyright 2019 Sergio Teruel <sergio.teruel@tecnativa.com>
|
2
2
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
|
3
3
|
from odoo import models
|
4
|
+
from odoo.tools.float_utils import float_compare
|
4
5
|
|
5
6
|
|
6
7
|
class StockPicking(models.Model):
|
@@ -46,7 +47,38 @@ class StockPicking(models.Model):
|
|
46
47
|
and not self.move_line_ids.mapped("result_package_id")
|
47
48
|
):
|
48
49
|
self.action_put_in_pack()
|
49
|
-
|
50
|
+
create_backorder = False
|
51
|
+
# Variable initialized as True to optimize break loop
|
52
|
+
skip_backorder = True
|
53
|
+
if self.env.context.get("stock_barcodes_validate_picking", False):
|
54
|
+
# Avoid backorder when all move lines are processed (done or done_forced)
|
55
|
+
prec = self.env["decimal.precision"].precision_get(
|
56
|
+
"Product Unit of Measure"
|
57
|
+
)
|
58
|
+
for move in self.move_lines.filtered(lambda sm: sm.state != "cancel"):
|
59
|
+
if (
|
60
|
+
float_compare(
|
61
|
+
move.quantity_done, move.product_uom_qty, precision_digits=prec
|
62
|
+
)
|
63
|
+
< 0
|
64
|
+
):
|
65
|
+
# In normal conditions backorder will be created
|
66
|
+
create_backorder = True
|
67
|
+
if not move.move_line_ids or any(
|
68
|
+
sml.state in ["pending"] for sml in move.move_line_ids
|
69
|
+
):
|
70
|
+
# If any move are not processed we can not skip backorder
|
71
|
+
skip_backorder = False
|
72
|
+
break
|
73
|
+
if create_backorder and skip_backorder:
|
74
|
+
res = super(
|
75
|
+
StockPicking,
|
76
|
+
self.with_context(
|
77
|
+
picking_ids_not_to_backorder=self.ids, skip_backorder=True
|
78
|
+
),
|
79
|
+
).button_validate()
|
80
|
+
else:
|
81
|
+
res = super().button_validate()
|
50
82
|
if res is True and self.env.context.get("show_picking_type_action_tree", False):
|
51
83
|
return self[:1].picking_type_id.get_action_picking_tree_ready()
|
52
84
|
return res
|
@@ -366,7 +366,7 @@ ul.auto-toc {
|
|
366
366
|
!! This file is generated by oca-gen-addon-readme !!
|
367
367
|
!! changes will be overwritten. !!
|
368
368
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
369
|
-
!! source digest: sha256:
|
369
|
+
!! source digest: sha256:f692c55757adbbf2d2aabb8b7a8572eff5dfdae5695521e950f3feef795da443
|
370
370
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
371
371
|
<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/stock-logistics-barcode/tree/15.0/stock_barcodes"><img alt="OCA/stock-logistics-barcode" src="https://img.shields.io/badge/github-OCA%2Fstock--logistics--barcode-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/stock-logistics-barcode-15-0/stock-logistics-barcode-15-0-stock_barcodes"><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-barcode&target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
372
372
|
<p>This module provides a barcode reader interface for stock module.</p>
|
@@ -613,19 +613,15 @@ class WizStockBarcodesReadPicking(models.TransientModel):
|
|
613
613
|
).state = "assigned"
|
614
614
|
# When create new stock move lines and we are in guided mode we need
|
615
615
|
# link this new lines to the todo line details
|
616
|
-
|
617
|
-
|
618
|
-
|
619
|
-
|
620
|
-
|
621
|
-
|
622
|
-
|
623
|
-
|
624
|
-
|
625
|
-
todo_line.line_ids = [(4, sml.id) for sml in stock_move_lines]
|
626
|
-
elif self.option_group_id.show_pending_moves:
|
627
|
-
# TODO: Check performance with a lot records
|
628
|
-
self.fill_todo_records()
|
616
|
+
# If user scan a product distinct of the todo line we need link to other
|
617
|
+
# alternative move
|
618
|
+
if move_to_link_in_todo_line and self.todo_line_id:
|
619
|
+
todo_line = self.todo_line_id
|
620
|
+
else:
|
621
|
+
todo_line = self.todo_line_ids.filtered(
|
622
|
+
lambda ln: ln.product_id == self.product_id
|
623
|
+
)
|
624
|
+
todo_line.line_ids = [(4, sml.id) for sml in stock_move_lines]
|
629
625
|
self.update_fields_after_process_stock(moves_todo)
|
630
626
|
return move_lines_dic
|
631
627
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: odoo-addon-stock-barcodes
|
3
|
-
Version: 15.0.3.1.
|
3
|
+
Version: 15.0.3.1.4
|
4
4
|
Summary: It provides read barcode on stock operations.
|
5
5
|
Home-page: https://github.com/OCA/stock-logistics-barcode
|
6
6
|
Author: Tecnativa, Odoo Community Association (OCA)
|
@@ -24,7 +24,7 @@ Stock Barcodes
|
|
24
24
|
!! This file is generated by oca-gen-addon-readme !!
|
25
25
|
!! changes will be overwritten. !!
|
26
26
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
27
|
-
!! source digest: sha256:
|
27
|
+
!! source digest: sha256:f692c55757adbbf2d2aabb8b7a8572eff5dfdae5695521e950f3feef795da443
|
28
28
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
29
29
|
|
30
30
|
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
|
@@ -1,6 +1,6 @@
|
|
1
|
-
odoo/addons/stock_barcodes/README.rst,sha256=
|
1
|
+
odoo/addons/stock_barcodes/README.rst,sha256=9SbQ3GO6XoiZZkO0LVBhfu6sDKdsbAvo5X--ierhYn4,7000
|
2
2
|
odoo/addons/stock_barcodes/__init__.py,sha256=GJDFROBciW9KNOlikIfV-4Gu8TPCJRp8ZWZCxngbDtI,206
|
3
|
-
odoo/addons/stock_barcodes/__manifest__.py,sha256=
|
3
|
+
odoo/addons/stock_barcodes/__manifest__.py,sha256=ox0ONbc5zm42na7_UQKRNkHsmcVlHoTYW1nbv7TCJCc,1721
|
4
4
|
odoo/addons/stock_barcodes/hooks.py,sha256=XramAPbWa-q40rEpW_LmnNpnF-aMd_WseYb_kyG3ntQ,525
|
5
5
|
odoo/addons/stock_barcodes/data/stock_barcodes_action.xml,sha256=BYvm7V39dkqfLPCtNVpYKzqinOaIuRGCjTz9Fo5U3m4,1889
|
6
6
|
odoo/addons/stock_barcodes/data/stock_barcodes_option.xml,sha256=gBDOLurvDcRlBRg7Ni2_Uk_an9uJOpRM55LiRl9u7aA,20711
|
@@ -13,7 +13,7 @@ odoo/addons/stock_barcodes/models/stock_barcodes_action.py,sha256=fz-Ua705YkuVXK
|
|
13
13
|
odoo/addons/stock_barcodes/models/stock_barcodes_option.py,sha256=CNkfNdD9q28Lewf-kMi6VlwMSzTdMc2oocwPO1y7MoA,4924
|
14
14
|
odoo/addons/stock_barcodes/models/stock_barcodes_read_log.py,sha256=MXm4gKUDjmS8SoM-ZB5hb4NH6p9SdCo2vebinzP9270,2084
|
15
15
|
odoo/addons/stock_barcodes/models/stock_move_line.py,sha256=rMdeYBdpjLUSI7YZmu11Irfy8eEmS-AerU_WBxc6-7M,1815
|
16
|
-
odoo/addons/stock_barcodes/models/stock_picking.py,sha256=
|
16
|
+
odoo/addons/stock_barcodes/models/stock_picking.py,sha256=Fo0x661lxXW-oyfDBn1K7lW7wfXXFNpDieDMx-6Trnw,3612
|
17
17
|
odoo/addons/stock_barcodes/models/stock_picking_type.py,sha256=jtF5GHtE4iapX33hhLKIXyyNsMsmYADYlXDD29bXQSY,2795
|
18
18
|
odoo/addons/stock_barcodes/models/stock_quant.py,sha256=2QdFE59Evu-9zyNVa8XUxPp4pOf2oGvldG3w_x5PItY,1038
|
19
19
|
odoo/addons/stock_barcodes/readme/CONTRIBUTORS.rst,sha256=YwIWfY0nMK40FKKAJnRLWWlTZIJmEQtfr1mq3dAuWWc,317
|
@@ -24,7 +24,7 @@ odoo/addons/stock_barcodes/readme/USAGE.rst,sha256=I3vBT7ih0lReN147-tDO6imDTuHWs
|
|
24
24
|
odoo/addons/stock_barcodes/security/ir.model.access.csv,sha256=GUAIZrn35Oh4aTIr7qJmtrWwNg8BvP1avdIzQhiOPIE,1584
|
25
25
|
odoo/addons/stock_barcodes/static/description/icon.png,sha256=7ksDD35buxE_kBLoeXUGbdSW_5n-LC4S-SnQSs9tz1A,2994
|
26
26
|
odoo/addons/stock_barcodes/static/description/icon.svg,sha256=aMrHV2Isu4t_jJlnLVYqbcL_icg9wT2eSSAKxQ3pgDA,69299
|
27
|
-
odoo/addons/stock_barcodes/static/description/index.html,sha256=
|
27
|
+
odoo/addons/stock_barcodes/static/description/index.html,sha256=L3MhKpO8jdRuumn1F8ltootbMvQu9Prn5D0FYXh4WBk,19068
|
28
28
|
odoo/addons/stock_barcodes/static/src/css/stock.css,sha256=6U9n2kttW8cXYWMU04eEtHmY6-7Bcn3o1LAMCpC5J3c,121
|
29
29
|
odoo/addons/stock_barcodes/static/src/css/stock.scss,sha256=w8oMsOijg8cwC5uDefUr-PFMHB_NNMgK3roONAK5OLY,1984
|
30
30
|
odoo/addons/stock_barcodes/static/src/img/scan.png,sha256=DIN3r_B9kzMGmeRpqSx8K0S7RO8_FEwZudxGUYIPqSM,5405
|
@@ -49,14 +49,14 @@ odoo/addons/stock_barcodes/wizard/__init__.py,sha256=uUoIvaVAJWYetOqNRsGyYFjsBfM
|
|
49
49
|
odoo/addons/stock_barcodes/wizard/stock_barcodes_read.py,sha256=dApXAQdEp3Al0OSNVyCbzldrApWjGpurDwdN5hDugMY,32873
|
50
50
|
odoo/addons/stock_barcodes/wizard/stock_barcodes_read_inventory.py,sha256=OA4v2gPdiKhLReQ4ZjHTTIq_xUQbbRrERTU8JZuwR9k,5089
|
51
51
|
odoo/addons/stock_barcodes/wizard/stock_barcodes_read_inventory_views.xml,sha256=98XV32z771eWTeAgZ19NsL9_UOJroFJr9WqSpLDI8j4,10179
|
52
|
-
odoo/addons/stock_barcodes/wizard/stock_barcodes_read_picking.py,sha256=
|
52
|
+
odoo/addons/stock_barcodes/wizard/stock_barcodes_read_picking.py,sha256=6ntI87rE29xX8oE7IqnwMjbHyjBUq0OOQi4rIQZdbl0,37429
|
53
53
|
odoo/addons/stock_barcodes/wizard/stock_barcodes_read_picking_views.xml,sha256=Uujl1HPGfPF9sQWDVU6idODk821d4j8jaSuCLRRdtxs,23185
|
54
54
|
odoo/addons/stock_barcodes/wizard/stock_barcodes_read_todo.py,sha256=JlfkQ4ypkZjFAvG89_fBwODVSBcZW7KDJs484d-mrug,9480
|
55
55
|
odoo/addons/stock_barcodes/wizard/stock_barcodes_read_todo_view.xml,sha256=DOZKGojUd9LE0Gq2z5IRRtabx5a5i6XKBC_TXlNXPg4,9347
|
56
56
|
odoo/addons/stock_barcodes/wizard/stock_barcodes_read_views.xml,sha256=bC_08j8ZLT81iFhKhPGEb8nD6RlpT-ZfykUkvpCHjgs,33375
|
57
57
|
odoo/addons/stock_barcodes/wizard/stock_production_lot.py,sha256=-xxa2_y0Ln3THilCi5DZpauTesdtiRp9SIZiTFHff9k,2217
|
58
58
|
odoo/addons/stock_barcodes/wizard/stock_production_lot_views.xml,sha256=rsX8DUnwQVkGFfGcsYcrsfkgCh5JGmiO3BrSJilIhJc,2056
|
59
|
-
odoo_addon_stock_barcodes-15.0.3.1.
|
60
|
-
odoo_addon_stock_barcodes-15.0.3.1.
|
61
|
-
odoo_addon_stock_barcodes-15.0.3.1.
|
62
|
-
odoo_addon_stock_barcodes-15.0.3.1.
|
59
|
+
odoo_addon_stock_barcodes-15.0.3.1.4.dist-info/METADATA,sha256=JyZQ54B39uSf8LmAoYh9RCr9hL65qjsjYJAiuHyIOu0,7633
|
60
|
+
odoo_addon_stock_barcodes-15.0.3.1.4.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
61
|
+
odoo_addon_stock_barcodes-15.0.3.1.4.dist-info/top_level.txt,sha256=qBj40grFkGOfDZ2WDSw3y1RnDlgG0u8rP8pvGNdbz4w,5
|
62
|
+
odoo_addon_stock_barcodes-15.0.3.1.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|