diff --git a/barcode_action/README.rst b/barcode_action/README.rst index bddd4be..33c459e 100644 --- a/barcode_action/README.rst +++ b/barcode_action/README.rst @@ -14,13 +14,13 @@ Barcode action launcher :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html :alt: License: AGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github - :target: https://github.com/OCA/server-ux/tree/11.0/barcode_action + :target: https://github.com/OCA/server-ux/tree/12.0/barcode_action :alt: OCA/server-ux .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/server-ux-11-0/server-ux-11-0-barcode_action + :target: https://translation.odoo-community.org/projects/server-ux-12-0/server-ux-12-0-barcode_action :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/250/11.0 + :target: https://runbot.odoo-community.org/runbot/250/12.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -103,7 +103,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. @@ -136,6 +136,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/server-ux `_ project on GitHub. +This module is part of the `OCA/server-ux `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/barcode_action/__manifest__.py b/barcode_action/__manifest__.py index 1396c77..6488ce6 100644 --- a/barcode_action/__manifest__.py +++ b/barcode_action/__manifest__.py @@ -4,7 +4,7 @@ { 'name': 'Barcode action launcher', - 'version': '11.0.1.0.0', + 'version': '12.0.1.0.0', 'category': 'Extra Tools', 'website': 'https://github.com/OCA/server-ux', 'author': 'Creu Blanca, Eficent, Odoo Community Association (OCA)', diff --git a/barcode_action/static/description/index.html b/barcode_action/static/description/index.html index 5b01fa0..36addc9 100644 --- a/barcode_action/static/description/index.html +++ b/barcode_action/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/server-ux Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/server-ux Translate me on Weblate Try me on Runbot

This module allows to use barcodes as launchers of actions.

The action will launch a function that uses the barcode in order to return an action.

Table of contents

@@ -447,7 +447,7 @@ class ResPartner(models.Model):

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.

@@ -473,7 +473,7 @@ If you spotted it first, help us smashing it by providing a detailed and welcome

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/server-ux project on GitHub.

+

This module is part of the OCA/server-ux project on GitHub.

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

diff --git a/barcode_action/static/src/js/action_barcode_form.js b/barcode_action/static/src/js/action_barcode_form.js index e53c381..4eedc51 100644 --- a/barcode_action/static/src/js/action_barcode_form.js +++ b/barcode_action/static/src/js/action_barcode_form.js @@ -1,23 +1,23 @@ odoo.define('barcode_action.form', function (require) { -"use strict"; + "use strict"; -var FormController = require('web.FormController'); + var FormController = require('web.FormController'); -FormController.include({ - _barcodeHandleAction: function (barcode, activeBarcode) { - var record = this.model.get(this.handle); - var self = this; - return self._rpc({ + FormController.include({ + _barcodeHandleAction: function (barcode, activeBarcode) { + var record = this.model.get(this.handle); + var self = this; + return self._rpc({ model: record.data.model, method: record.data.method, args: [[record.data.res_id], barcode], }).done(function (action) { - if (action){ + if (action) { self._barcodeStopListening(); self.do_action(action); } }); - }, -}); + }, + }); }); diff --git a/barcode_action/static/src/js/action_barcode_widget.js b/barcode_action/static/src/js/action_barcode_widget.js index 5e5bbdf..ad875d9 100644 --- a/barcode_action/static/src/js/action_barcode_widget.js +++ b/barcode_action/static/src/js/action_barcode_widget.js @@ -1,24 +1,24 @@ odoo.define('barcode_action.field', function (require) { -"use strict"; + "use strict"; -var AbstractField = require('web.AbstractField'); -var field_registry = require('web.field_registry'); + var AbstractField = require('web.AbstractField'); + var field_registry = require('web.field_registry'); -var ActionBarcodeField = AbstractField.extend({ - init: function() { - this._super.apply(this, arguments); - this.trigger_up('activeBarcode', { - name: this.name, - commands: { - barcode: '_barcodeHandleAction', - } - }); - }, -}); -field_registry.add('action_barcode_handler', ActionBarcodeField); + var ActionBarcodeField = AbstractField.extend({ + init: function () { + this._super.apply(this, arguments); + this.trigger_up('activeBarcode', { + name: this.name, + commands: { + barcode: '_barcodeHandleAction', + }, + }); + }, + }); + field_registry.add('action_barcode_handler', ActionBarcodeField); -return { - ActionBarcodeField:ActionBarcodeField, -}; + return { + ActionBarcodeField:ActionBarcodeField, + }; });