diff --git a/pos_lot_barcode/README.rst b/pos_lot_barcode/README.rst index 42b13fb52b..eff3e97d67 100644 --- a/pos_lot_barcode/README.rst +++ b/pos_lot_barcode/README.rst @@ -14,13 +14,13 @@ POS Lot Barcode :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fpos-lightgray.png?logo=github - :target: https://github.com/OCA/pos/tree/15.0/pos_lot_barcode + :target: https://github.com/OCA/pos/tree/16.0/pos_lot_barcode :alt: OCA/pos .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/pos-15-0/pos-15-0-pos_lot_barcode + :target: https://translation.odoo-community.org/projects/pos-16-0/pos-16-0-pos_lot_barcode :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/184/15.0 + :target: https://runbot.odoo-community.org/runbot/184/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -44,7 +44,7 @@ Bug Tracker Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -74,6 +74,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use. -This module is part of the `OCA/pos `_ project on GitHub. +This module is part of the `OCA/pos `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/pos_lot_barcode/__manifest__.py b/pos_lot_barcode/__manifest__.py index 8bc362d24c..2b24daf8e1 100644 --- a/pos_lot_barcode/__manifest__.py +++ b/pos_lot_barcode/__manifest__.py @@ -3,7 +3,7 @@ { "name": "POS Lot Barcode", "summary": "Scan barcode to enter lot/serial numbers", - "version": "15.0.1.0.0", + "version": "16.0.1.0.0", "development_status": "Alpha", "category": "Sales/Point of Sale", "website": "https://github.com/OCA/pos", @@ -18,7 +18,7 @@ "point_of_sale.assets": [ "pos_lot_barcode/static/src/js/**/*.js", ], - "web.assets_qweb": [ + "web.assets_backend": [ "pos_lot_barcode/static/src/xml/**/*.xml", ], }, diff --git a/pos_lot_barcode/i18n/pos_lot_barcode.pot b/pos_lot_barcode/i18n/pos_lot_barcode.pot index 2769743a6b..0fcd87bdf9 100644 --- a/pos_lot_barcode/i18n/pos_lot_barcode.pot +++ b/pos_lot_barcode/i18n/pos_lot_barcode.pot @@ -4,7 +4,7 @@ # msgid "" msgstr "" -"Project-Id-Version: Odoo Server 15.0\n" +"Project-Id-Version: Odoo Server 16.0\n" "Report-Msgid-Bugs-To: \n" "Last-Translator: \n" "Language-Team: \n" diff --git a/pos_lot_barcode/static/description/index.html b/pos_lot_barcode/static/description/index.html index 7019ae78ae..fbd33fe7f2 100644 --- a/pos_lot_barcode/static/description/index.html +++ b/pos_lot_barcode/static/description/index.html @@ -367,7 +367,7 @@

POS Lot Barcode

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Alpha License: AGPL-3 OCA/pos Translate me on Weblate Try me on Runbot

+

Alpha License: AGPL-3 OCA/pos Translate me on Weblate Try me on Runbot

This module extends the point of sale functionalities to allow scanning a lot/serial number using a barcode reader instead of having to enter it manually.

@@ -393,7 +393,7 @@

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -417,7 +417,7 @@

Maintainers

OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

-

This module is part of the OCA/pos project on GitHub.

+

This module is part of the OCA/pos project on GitHub.

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

diff --git a/pos_lot_barcode/static/src/js/Popups/EditListPopup.js b/pos_lot_barcode/static/src/js/Popups/EditListPopup.js index 67f402511a..4dfd8d4e4f 100644 --- a/pos_lot_barcode/static/src/js/Popups/EditListPopup.js +++ b/pos_lot_barcode/static/src/js/Popups/EditListPopup.js @@ -11,8 +11,8 @@ odoo.define("pos_lot_barcode.EditListPopup", function (require) { const PosLotBarcodeEditListPopup = (EditListPopup) => class extends EditListPopup { - constructor() { - super(...arguments); + setup() { + super.setup(); useBarcodeReader({ lot: this._lotScanned, }); diff --git a/pos_lot_barcode/static/src/js/Screens/ProductScreen.js b/pos_lot_barcode/static/src/js/Screens/ProductScreen.js index 9aa1bed8e7..2ac7e8b2fe 100644 --- a/pos_lot_barcode/static/src/js/Screens/ProductScreen.js +++ b/pos_lot_barcode/static/src/js/Screens/ProductScreen.js @@ -13,8 +13,8 @@ odoo.define("pos_lot_barcode.ProductScreen", function (require) { const PosLotBarcodeProductScreen = (ProductScreen) => class extends ProductScreen { - constructor() { - super(...arguments); + setup() { + super.setup(); this.scan_lots_active = true; useBarcodeReader({ lot: this._barcodeLotAction, diff --git a/setup/pos_lot_barcode/odoo/addons/pos_lot_barcode b/setup/pos_lot_barcode/odoo/addons/pos_lot_barcode new file mode 120000 index 0000000000..54240e2272 --- /dev/null +++ b/setup/pos_lot_barcode/odoo/addons/pos_lot_barcode @@ -0,0 +1 @@ +../../../../pos_lot_barcode \ No newline at end of file diff --git a/setup/pos_lot_barcode/setup.py b/setup/pos_lot_barcode/setup.py new file mode 100644 index 0000000000..28c57bb640 --- /dev/null +++ b/setup/pos_lot_barcode/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)