Skip to content

Commit 5f4dde5

Browse files
committed
[MIG] stock_barcodes: Migration to 16.0
1 parent 2a64730 commit 5f4dde5

39 files changed

+1121
-1256
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../stock_barcodes

setup/stock_barcodes/setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

stock_barcodes/README.rst

Lines changed: 6 additions & 6 deletions
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:525a93165bdee89662d7cde6315ac154e43ad2bb1db6fd2b6c4f72847a16ac6d
10+
!! source digest: sha256:cc8a4769a4d49396466d2fe0d4ee151e77ecf646a27d11a3700c9bb5c1855b1f
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -17,13 +17,13 @@ Stock Barcodes
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fstock--logistics--barcode-lightgray.png?logo=github
20-
:target: https://github.com/OCA/stock-logistics-barcode/tree/15.0/stock_barcodes
20+
:target: https://github.com/OCA/stock-logistics-barcode/tree/16.0/stock_barcodes
2121
:alt: OCA/stock-logistics-barcode
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/stock-logistics-barcode-15-0/stock-logistics-barcode-15-0-stock_barcodes
23+
:target: https://translation.odoo-community.org/projects/stock-logistics-barcode-16-0/stock-logistics-barcode-16-0-stock_barcodes
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-barcode&target_branch=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/stock-logistics-barcode&target_branch=16.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -159,7 +159,7 @@ Bug Tracker
159159
Bugs are tracked on `GitHub Issues <https://github.com/OCA/stock-logistics-barcode/issues>`_.
160160
In case of trouble, please check there if your issue has already been reported.
161161
If you spotted it first, help us to smash it by providing a detailed and welcomed
162-
`feedback <https://github.com/OCA/stock-logistics-barcode/issues/new?body=module:%20stock_barcodes%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
162+
`feedback <https://github.com/OCA/stock-logistics-barcode/issues/new?body=module:%20stock_barcodes%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
163163

164164
Do not contact contributors directly about support or help with technical issues.
165165

@@ -209,6 +209,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
209209
mission is to support the collaborative development of Odoo features and
210210
promote its widespread use.
211211

212-
This module is part of the `OCA/stock-logistics-barcode <https://github.com/OCA/stock-logistics-barcode/tree/15.0/stock_barcodes>`_ project on GitHub.
212+
This module is part of the `OCA/stock-logistics-barcode <https://github.com/OCA/stock-logistics-barcode/tree/16.0/stock_barcodes>`_ project on GitHub.
213213

214214
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

stock_barcodes/__manifest__.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"name": "Stock Barcodes",
55
"summary": "It provides read barcode on stock operations.",
6-
"version": "15.0.2.0.0",
6+
"version": "16.0.1.0.0",
77
"author": "Tecnativa, " "Odoo Community Association (OCA)",
88
"website": "https://github.com/OCA/stock-logistics-barcode",
99
"license": "AGPL-3",
@@ -27,12 +27,15 @@
2727
],
2828
"assets": {
2929
"web.assets_backend": [
30-
"/stock_barcodes/static/src/js/barcodes_models_mixin.js",
31-
"/stock_barcodes/static/src/js/basic_controller.js",
32-
"/stock_barcodes/static/src/js/kanban_renderer.js",
33-
"/stock_barcodes/static/src/js/basic_fields.js",
34-
"/stock_barcodes/static/src/js/form_view.js",
35-
"/stock_barcodes/static/src/js/numeric_step.js",
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",
38+
"/stock_barcodes/static/src/widgets/view_button.xml",
3639
"/stock_barcodes/static/src/css/stock.scss",
3740
],
3841
},

stock_barcodes/migrations/15.0.1.0.0/pre-migration.py

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

stock_barcodes/models/stock_barcodes_read_log.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class StockBarcodesReadLog(models.Model):
1212
res_model_id = fields.Many2one(comodel_name="ir.model", index=True)
1313
res_id = fields.Integer(index=True)
1414
product_id = fields.Many2one(comodel_name="product.product", index=True)
15-
lot_id = fields.Many2one(comodel_name="stock.production.lot", string="Lot scanned")
15+
lot_id = fields.Many2one(comodel_name="stock.lot", string="Lot scanned")
1616
location_id = fields.Many2one(comodel_name="stock.location")
1717
packaging_id = fields.Many2one(comodel_name="product.packaging")
1818
packaging_qty = fields.Float(string="Package Qty", digits="Product Unit of Measure")

stock_barcodes/models/stock_move_line.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ class StockMoveLine(models.Model):
1515
store=True,
1616
)
1717

18-
@api.depends("qty_done", "product_uom_qty")
18+
@api.depends("qty_done", "reserved_uom_qty")
1919
def _compute_barcode_scan_state(self):
2020
for line in self:
21-
if line.qty_done >= line.product_uom_qty:
21+
if line.qty_done >= line.reserved_uom_qty:
2222
line.barcode_scan_state = "done"
2323
else:
2424
line.barcode_scan_state = "pending"

stock_barcodes/static/description/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -367,9 +367,9 @@ <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:525a93165bdee89662d7cde6315ac154e43ad2bb1db6fd2b6c4f72847a16ac6d
370+
!! source digest: sha256:cc8a4769a4d49396466d2fe0d4ee151e77ecf646a27d11a3700c9bb5c1855b1f
371371
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
372-
<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&amp;target_branch=15.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
372+
<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>
374374
<p>This module contains a base wizard read barcode that can be extended by
375375
other modules.</p>
@@ -518,7 +518,7 @@ <h1><a class="toc-backref" href="#toc-entry-12">Bug Tracker</a></h1>
518518
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/stock-logistics-barcode/issues">GitHub Issues</a>.
519519
In case of trouble, please check there if your issue has already been reported.
520520
If you spotted it first, help us to smash it by providing a detailed and welcomed
521-
<a class="reference external" href="https://github.com/OCA/stock-logistics-barcode/issues/new?body=module:%20stock_barcodes%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
521+
<a class="reference external" href="https://github.com/OCA/stock-logistics-barcode/issues/new?body=module:%20stock_barcodes%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
522522
<p>Do not contact contributors directly about support or help with technical issues.</p>
523523
</div>
524524
<div class="section" id="credits">
@@ -561,7 +561,7 @@ <h2><a class="toc-backref" href="#toc-entry-16">Maintainers</a></h2>
561561
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
562562
mission is to support the collaborative development of Odoo features and
563563
promote its widespread use.</p>
564-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-barcode/tree/15.0/stock_barcodes">OCA/stock-logistics-barcode</a> project on GitHub.</p>
564+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/stock-logistics-barcode/tree/16.0/stock_barcodes">OCA/stock-logistics-barcode</a> project on GitHub.</p>
565565
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
566566
</div>
567567
</div>

stock_barcodes/static/src/css/stock.css

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

stock_barcodes/static/src/css/stock.scss

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@
3838

3939
.o_kanban_record {
4040
padding: 0.3em;
41+
flex-basis: 100%;
42+
43+
.btn-full-width {
44+
margin: -9px;
45+
width: calc(100% + 18px);
46+
height: calc(100% + 18px);
47+
}
4148

4249
&.o_kanban_ghost {
4350
display: none;

0 commit comments

Comments
 (0)