{ "info": { "author": "Creu Blanca, Eficent, Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python" ], "description": "=======================\nBarcode action launcher\n=======================\n\n.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n !! This file is generated by oca-gen-addon-readme !!\n !! changes will be overwritten. !!\n !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n\n.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png\n :target: https://odoo-community.org/page/development-status\n :alt: Beta\n.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png\n :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n :alt: License: AGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--ux-lightgray.png?logo=github\n :target: https://github.com/OCA/server-ux/tree/11.0/barcode_action\n :alt: OCA/server-ux\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n :target: https://translation.odoo-community.org/projects/server-ux-11-0/server-ux-11-0-barcode_action\n :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png\n :target: https://runbot.odoo-community.org/runbot/250/11.0\n :alt: Try me on Runbot\n\n|badge1| |badge2| |badge3| |badge4| |badge5| \n\nThis module allows to use barcodes as launchers of actions.\n\nThe action will launch a function that uses the barcode in order to return an action.\n\n**Table of contents**\n\n.. contents::\n :local:\n\nUsage\n=====\n\nActions must be configured with the following data in the context:\n* model: Model where we can find the method (required)\n* method: Method to execute (required)\n* res_id: Id as base (optional)\n\nThe method must return an action. Installing this module with demo data will\ninstall a demo application that allows the system administrator to find a\npartner by the external reference encoded in a barcode.\n\nGo to *Settings / Find partners* and scan a barcode that contains the\ninternal reference of an existing partner. As soon as you read the barcode\nthe system will redirect you to that partner's form view.\n\nTechnical implementation of this example:\n\nAction::\n\n \n\n \n\nPython code::\n\n import json\n from odoo import api, models, _\n from odoo.tools.safe_eval import safe_eval\n\n\n class ResPartner(models.Model):\n _inherit = 'res.partner'\n\n @api.multi\n def find_res_partner_by_ref_using_barcode(self, barcode):\n partner = self.search([('ref', '=', barcode)], limit=1)\n if not partner:\n action = self.env.ref('res_partner_find')\n result = action.read()[0]\n context = safe_eval(result['context'])\n context.update({\n 'default_state': 'warning',\n 'default_status': _('Partner with Internal Reference '\n '%s cannot be found') % barcode\n })\n result['context'] = json.dumps(context)\n return result\n action = self.env.ref('base.action_partner_form')\n result = action.read()[0]\n res = self.env.ref('base.view_partner_form', False)\n result['views'] = [(res and res.id or False, 'form')]\n result['res_id'] = partner.id\n return result\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues `_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us smashing it by providing a detailed and welcomed\n`feedback `_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n~~~~~~~\n\n* Creu Blanca\n* Eficent\n\nContributors\n~~~~~~~~~~~~\n\n* Enric Tobella \n* Jordi Ballester \n\n\nMaintainers\n~~~~~~~~~~~\n\nThis module is maintained by the OCA.\n\n.. image:: https://odoo-community.org/logo.png\n :alt: Odoo Community Association\n :target: https://odoo-community.org\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nThis module is part of the `OCA/server-ux `_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/OCA/server-ux", "keywords": "", "license": "AGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo11-addon-barcode-action", "package_url": "https://pypi.org/project/odoo11-addon-barcode-action/", "platform": "", "project_url": "https://pypi.org/project/odoo11-addon-barcode-action/", "project_urls": { "Homepage": "https://github.com/OCA/server-ux" }, "release_url": "https://pypi.org/project/odoo11-addon-barcode-action/11.0.1.0.0.99.dev8/", "requires_dist": [ "odoo (<11.1dev,>=11.0a)" ], "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "summary": "Allows to use barcodes as a launcher", "version": "11.0.1.0.0.99.dev8" }, "last_serial": 5605149, "releases": { "11.0.1.0.0.99.dev4": [ { "comment_text": "", "digests": { "md5": "65e27d5fdb675f5d43f44f53fd71dfe9", "sha256": "8e86b1da4252a9700df31f7bcdeaaeec4dde80633a9eee8efb73508ba9d7ae8f" }, "downloads": -1, "filename": "odoo11_addon_barcode_action-11.0.1.0.0.99.dev4-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "65e27d5fdb675f5d43f44f53fd71dfe9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 24254, "upload_time": "2018-08-09T04:48:30", "url": "https://files.pythonhosted.org/packages/84/e2/6ea01319cf52cceefbae5db36670d011c9a9bac8cdeb5fd911b911673cca/odoo11_addon_barcode_action-11.0.1.0.0.99.dev4-py2.py3-none-any.whl" } ], "11.0.1.0.0.99.dev5": [ { "comment_text": "", "digests": { "md5": "111f1be5038943d613a7f60d17514b84", "sha256": "5dfa5f8f6da703f25101efffda2b7fc9890ed1632a02a361eb60d0dfdacf2d0f" }, "downloads": -1, "filename": "odoo11_addon_barcode_action-11.0.1.0.0.99.dev5-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "111f1be5038943d613a7f60d17514b84", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 29151, "upload_time": "2018-08-24T04:47:53", "url": "https://files.pythonhosted.org/packages/cd/bc/c5c6d36114bc427c9aa85fbe53d484e580b8abff60ee048e9079779e1f56/odoo11_addon_barcode_action-11.0.1.0.0.99.dev5-py2.py3-none-any.whl" } ], "11.0.1.0.0.99.dev6": [ { "comment_text": "", "digests": { "md5": "459b9b5c8a4f4e6d373499f52ec824b9", "sha256": "e4f0495ad3c6048f28f68af2ed6838f54013bba453c764f433f5c4cebf20a977" }, "downloads": -1, "filename": "odoo11_addon_barcode_action-11.0.1.0.0.99.dev6-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "459b9b5c8a4f4e6d373499f52ec824b9", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 30043, "upload_time": "2019-05-09T04:58:29", "url": "https://files.pythonhosted.org/packages/13/e0/449e1edbe4eee93f7b0b1558239a2d35e04d990b5525557f53058291e4f2/odoo11_addon_barcode_action-11.0.1.0.0.99.dev6-py2.py3-none-any.whl" } ], "11.0.1.0.0.99.dev7": [ { "comment_text": "", "digests": { "md5": "b9ff2d0bd2e2b481af3893eb269bc675", "sha256": "787a0ab2685195ff6cad265ad9d72c058882e184e2a90250de1294a71769b787" }, "downloads": -1, "filename": "odoo11_addon_barcode_action-11.0.1.0.0.99.dev7-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b9ff2d0bd2e2b481af3893eb269bc675", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 30277, "upload_time": "2019-05-11T04:57:12", "url": "https://files.pythonhosted.org/packages/77/6b/bd6dc32cdae903bd6c6c9135e9f1f14cb27ecca6fa2a584b703238755c6c/odoo11_addon_barcode_action-11.0.1.0.0.99.dev7-py2.py3-none-any.whl" } ], "11.0.1.0.0.99.dev8": [ { "comment_text": "", "digests": { "md5": "75af62f31ffc487c27d8799ad92b0d12", "sha256": "7b73834ed57bf1e05031ef5d1549b8c4801954708940485193fcd9b117b797c8" }, "downloads": -1, "filename": "odoo11_addon_barcode_action-11.0.1.0.0.99.dev8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "75af62f31ffc487c27d8799ad92b0d12", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 30273, "upload_time": "2019-07-30T05:38:23", "url": "https://files.pythonhosted.org/packages/96/54/b381336426d2c9063a8b1e56b0b43660cb4be415e8484ff95c454392009b/odoo11_addon_barcode_action-11.0.1.0.0.99.dev8-py2.py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "75af62f31ffc487c27d8799ad92b0d12", "sha256": "7b73834ed57bf1e05031ef5d1549b8c4801954708940485193fcd9b117b797c8" }, "downloads": -1, "filename": "odoo11_addon_barcode_action-11.0.1.0.0.99.dev8-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "75af62f31ffc487c27d8799ad92b0d12", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, !=3.4.*", "size": 30273, "upload_time": "2019-07-30T05:38:23", "url": "https://files.pythonhosted.org/packages/96/54/b381336426d2c9063a8b1e56b0b43660cb4be415e8484ff95c454392009b/odoo11_addon_barcode_action-11.0.1.0.0.99.dev8-py2.py3-none-any.whl" } ] }