{ "info": { "author": "Tecnativa, Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)", "Programming Language :: Python" ], "description": "=====================================\nWebsite Snippet Country Code Dropdown\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-LGPL--3-blue.png\n :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html\n :alt: License: LGPL-3\n.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fwebsite-lightgray.png?logo=github\n :target: https://github.com/OCA/website/tree/12.0/website_snippet_country_dropdown\n :alt: OCA/website\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n :target: https://translation.odoo-community.org/projects/website-12-0/website-12-0-website_snippet_country_dropdown\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/186/12.0\n :alt: Try me on Runbot\n\n|badge1| |badge2| |badge3| |badge4| |badge5| \n\nThis module adds a snippet with a dropdown and an input text field, is a base\nfor be inherited by others modules into an HTML form.\n\nThis can be inserted into form elements.\n\n**Table of contents**\n\n.. contents::\n :local:\n\nUsage\n=====\n\nTo extend this template you need to inherit ``country_dropdown`` template and\nadd your personal code.\n\nThe template have three input text:\n\n#. ``no_country_field``: Field without code country.\n#. ``country_code_field``: Field with only country code (read only)\n#. ``complete_field``: Field with the previous two joined (hidden)\n\nThe name of the complete field is customizable when user insert the snippet\ninto a form element with the website editor.\n\nDevelopment\n~~~~~~~~~~~\n\nYou can call the reusable Qweb template called\n``website_snippet_country_dropdown.country_dropdown`` in your views to add a\nsensible country-combined field, ideal for *VATs*.\n\nThe default country will be the first match among:\n\n#. Extract it from the ``default_country`` variable.\n#. Extract it from the first 2 letters of the ``default_value`` variable.\n#. The current user's country.\n#. The current website's company's country.\n#. The first country in the list.\n\nAll variables you can use to modify its behavior:\n\n* ``complete_field`` to give it a name. Usually it will match the field name.\n* ``default_value`` for the ``complete_field``.\n* ``countries`` as a ``res.country`` ORM recordset.\n* ``default_country`` as a ``res.country`` record.\n* ``no_country_placeholder``.\n\nYou can view an example in ``website_sale_checkout_country_vat`` in\nOCA/e-commerce.\n\nKnown issues / Roadmap\n======================\n\n* Add tests.\n* Snippet drag and drop `seems to be blocked by Odoo for some unknown reason.\n `_.\n Given the main purpose of this module is to provide a reusable template for\n other modules to use, did not take the time to fix that use case.\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* Tecnativa\n\nContributors\n~~~~~~~~~~~~\n\n* `Tecnativa `_:\n\n * Sergio Teruel \n * Jairo Llopis \n * Alexandre D\u00edaz \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/website `_ 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": "http://www.tecnativa.com", "keywords": "", "license": "LGPL-3", "maintainer": "", "maintainer_email": "", "name": "odoo12-addon-website-snippet-country-dropdown", "package_url": "https://pypi.org/project/odoo12-addon-website-snippet-country-dropdown/", "platform": "", "project_url": "https://pypi.org/project/odoo12-addon-website-snippet-country-dropdown/", "project_urls": { "Homepage": "http://www.tecnativa.com" }, "release_url": "https://pypi.org/project/odoo12-addon-website-snippet-country-dropdown/12.0.1.1.0/", "requires_dist": [ "odoo (<12.1dev,>=12.0a)" ], "requires_python": ">=3.5", "summary": "Allow to select country in a dropdown", "version": "12.0.1.1.0" }, "last_serial": 5963049, "releases": { "12.0.1.0.0.99.dev1": [ { "comment_text": "", "digests": { "md5": "3d3273baa75f4b24760c621f5a75b9cb", "sha256": "469ea45e7f3d14d9b0eef2a9a50b83c2b7dc988c51c364cd2a4f4f43806e235a" }, "downloads": -1, "filename": "odoo12_addon_website_snippet_country_dropdown-12.0.1.0.0.99.dev1-py3-none-any.whl", "has_sig": false, "md5_digest": "3d3273baa75f4b24760c621f5a75b9cb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 32864, "upload_time": "2019-05-15T05:01:16", "url": "https://files.pythonhosted.org/packages/4a/9b/1571e83287c28c822aab3586684c43581d694663496bf2dce5c0ba985445/odoo12_addon_website_snippet_country_dropdown-12.0.1.0.0.99.dev1-py3-none-any.whl" } ], "12.0.1.0.0.99.dev2": [ { "comment_text": "", "digests": { "md5": "c8cffa7436bdde34981b7c685d506001", "sha256": "ee23b85c7947d27bb1b6edec5d2f973b9959046a5a36cee58aa03528e2f7697d" }, "downloads": -1, "filename": "odoo12_addon_website_snippet_country_dropdown-12.0.1.0.0.99.dev2-py3-none-any.whl", "has_sig": false, "md5_digest": "c8cffa7436bdde34981b7c685d506001", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 32978, "upload_time": "2019-05-21T05:08:15", "url": "https://files.pythonhosted.org/packages/4c/df/32c5e6a0656b169e12d9b63867592f52670be1a0fead9b916d829ab40c20/odoo12_addon_website_snippet_country_dropdown-12.0.1.0.0.99.dev2-py3-none-any.whl" } ], "12.0.1.0.0.99.dev3": [ { "comment_text": "", "digests": { "md5": "4fb3f6c5c6e7e8e7756a09947713248a", "sha256": "e63c8595779f35a2d64c4a985216d5e2731768b15dd2e88e1e7e6d15c9b653fa" }, "downloads": -1, "filename": "odoo12_addon_website_snippet_country_dropdown-12.0.1.0.0.99.dev3-py3-none-any.whl", "has_sig": false, "md5_digest": "4fb3f6c5c6e7e8e7756a09947713248a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 32972, "upload_time": "2019-07-30T05:45:23", "url": "https://files.pythonhosted.org/packages/bd/c1/521b36ea9666310a9782ffa5b2d59f0d149b563fc19f6590db65abaa32fa/odoo12_addon_website_snippet_country_dropdown-12.0.1.0.0.99.dev3-py3-none-any.whl" } ], "12.0.1.1.0": [ { "comment_text": "", "digests": { "md5": "f0d47d79e985d18b700e4fc8c17194e5", "sha256": "58a337a74045b5b340469fde159c2b4d67279ced6783e3cd0f22070125887772" }, "downloads": -1, "filename": "odoo12_addon_website_snippet_country_dropdown-12.0.1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f0d47d79e985d18b700e4fc8c17194e5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 32924, "upload_time": "2019-10-12T05:12:56", "url": "https://files.pythonhosted.org/packages/2a/4a/63a02a896e9226dece280db865fffa4a50c3e55d87a042fff02e59d356fe/odoo12_addon_website_snippet_country_dropdown-12.0.1.1.0-py3-none-any.whl" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "f0d47d79e985d18b700e4fc8c17194e5", "sha256": "58a337a74045b5b340469fde159c2b4d67279ced6783e3cd0f22070125887772" }, "downloads": -1, "filename": "odoo12_addon_website_snippet_country_dropdown-12.0.1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "f0d47d79e985d18b700e4fc8c17194e5", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.5", "size": 32924, "upload_time": "2019-10-12T05:12:56", "url": "https://files.pythonhosted.org/packages/2a/4a/63a02a896e9226dece280db865fffa4a50c3e55d87a042fff02e59d356fe/odoo12_addon_website_snippet_country_dropdown-12.0.1.1.0-py3-none-any.whl" } ] }