Skip to content

Commit 11c42f5

Browse files
committed
[MIG] stock_barcodes: continue migration
- Drop scan read logs feature, which use was deprecated already in the previous versions. - Pass bootstrap migration scripts. - Fix views issues. - Other code fixes.
1 parent 030fd4e commit 11c42f5

25 files changed

+477
-619
lines changed

stock_barcodes/README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Stock Barcodes
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:9d6c1f593b8fd9742b10d5eb279604dc97496ef1505c5673b29182fba1846342
10+
!! source digest: sha256:f6453112d1afcb3f171e5f468a06e4927c98ed93493c10c8af4e4aef077de7fd
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png

stock_barcodes/__manifest__.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,14 +27,12 @@
2727
],
2828
"assets": {
2929
"web.assets_backend": [
30-
"/stock_barcodes/static/src/utils/barcodes_models_utils.esm.js",
31-
"/stock_barcodes/static/src/views/kanban_renderer.esm.js",
32-
"/stock_barcodes/static/src/views/views.esm.js",
33-
"/stock_barcodes/static/src/views/form_view.esm.js",
34-
"/stock_barcodes/static/src/views/view_compiler.esm.js",
35-
"/stock_barcodes/static/src/widgets/boolean_toggle.esm.js",
36-
"/stock_barcodes/static/src/widgets/numeric_step.esm.js",
37-
"/stock_barcodes/static/src/widgets/view_button.esm.js",
30+
"/stock_barcodes/static/src/**/*.esm.js",
31+
(
32+
"after",
33+
"/web_widget_numeric_step/static/src/numeric_step.xml",
34+
"/stock_barcodes/static/src/widgets/numeric_step.xml",
35+
),
3836
"/stock_barcodes/static/src/widgets/view_button.xml",
3937
"/stock_barcodes/static/src/css/stock.scss",
4038
],

stock_barcodes/data/stock_barcodes_option.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,6 @@
445445
<field name="name">Inventory options</field>
446446
<field name="code">INV</field>
447447
<field name="barcode_guided_mode" />
448-
<field name="show_scan_log">False</field>
449448
</record>
450449
<record
451450
id="stock_barcodes_option_location_id_inventory"

stock_barcodes/i18n/es.po

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,7 +1216,7 @@ msgstr "Aceptar"
12161216
#. module: stock_barcodes
12171217
#: model_terms:ir.ui.view,arch_db:stock_barcodes.view_stock_barcodes_read_picking_form
12181218
msgid "Open"
1219-
msgstr "Abierto"
1219+
msgstr "Abrir"
12201220

12211221
#. module: stock_barcodes
12221222
#: model:ir.model.fields.selection,name:stock_barcodes.selection__stock_barcodes_option_group__source_pending_moves__move_lines
@@ -1249,7 +1249,7 @@ msgstr "Grupo de opciones para el interfaz de códigos de barras"
12491249
#. module: stock_barcodes
12501250
#: model:ir.model.fields.selection,name:stock_barcodes.selection__stock_barcodes_option_group__location_field_to_sort__location_id
12511251
msgid "Origin Location"
1252-
msgstr ""
1252+
msgstr "Ubicación de origen"
12531253

12541254
#. module: stock_barcodes
12551255
#: model:ir.model.fields,help:stock_barcodes.field_stock_barcodes_option_group__source_pending_moves

stock_barcodes/models/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from . import stock_barcodes_action
22
from . import stock_barcodes_option
3-
from . import stock_barcodes_read_log
43
from . import stock_move_line
54
from . import stock_picking
65
from . import stock_picking_type

stock_barcodes/models/stock_barcodes_option.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ class StockBarcodesOptionGroup(models.Model):
3939
default="move_line_ids",
4040
help="Origin of the data to generate the movements to process",
4141
)
42-
show_scan_log = fields.Boolean(
43-
string="Show scan log", help="Displays a log of the scans processed"
44-
)
4542
ignore_filled_fields = fields.Boolean(
4643
string="Ignore filled fields",
4744
)
@@ -103,10 +100,6 @@ class StockBarcodesOptionGroup(models.Model):
103100
("location_dest_id", "Destination Location"),
104101
]
105102
)
106-
scan_product_one_by_one = fields.Boolean(
107-
help="Will set the product quantity to one and complete the line",
108-
string="Scan product one by one"
109-
)
110103

111104
def get_option_value(self, field_name, attribute):
112105
option = self.option_ids.filtered(lambda op: op.field_name == field_name)[:1]

stock_barcodes/models/stock_barcodes_read_log.py

Lines changed: 0 additions & 51 deletions
This file was deleted.

stock_barcodes/models/stock_move_line.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ def _barcodes_process_line_to_unlink(self):
2828

2929
def action_barcode_detailed_operation_unlink(self):
3030
for sml in self:
31-
if sml.product_uom_qty:
31+
if sml.reserved_uom_qty:
3232
sml._barcodes_process_line_to_unlink()
3333
else:
3434
sml.unlink()

stock_barcodes/security/ir.model.access.csv

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
2-
access_stock_barcodes_read_log,access_stock_barcodes_read_log,model_stock_barcodes_read_log,base.group_user,1,1,1,1
3-
access_stock_barcodes_read_log_line,access_stock_barcodes_read_log_line,model_stock_barcodes_read_log_line,base.group_user,1,1,1,1
42
access_wiz_stock_barcodes_read_picking,access_wiz_stock_barcodes_read_picking,model_wiz_stock_barcodes_read_picking,base.group_user,1,1,1,1
53
access_wiz_candidate_picking,access_wiz_candidate_picking,model_wiz_candidate_picking,base.group_user,1,1,1,1
64
access_wiz_stock_barcodes_new_lot,access_wiz_stock_barcodes_new_lot,model_wiz_stock_barcodes_new_lot,base.group_user,1,1,1,1

stock_barcodes/static/description/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,7 @@ <h1 class="title">Stock Barcodes</h1>
367367
!! This file is generated by oca-gen-addon-readme !!
368368
!! changes will be overwritten. !!
369369
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
370-
!! source digest: sha256:9d6c1f593b8fd9742b10d5eb279604dc97496ef1505c5673b29182fba1846342
370+
!! source digest: sha256:f6453112d1afcb3f171e5f468a06e4927c98ed93493c10c8af4e4aef077de7fd
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372372
<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/16.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-16-0/stock-logistics-barcode-16-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&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
373373
<p>This module provides a barcode reader interface for stock module.</p>

0 commit comments

Comments
 (0)