odoo-addon-web-widget-url-advanced


Nameodoo-addon-web-widget-url-advanced JSON
Version 17.0.1.0.0.2 PyPI version JSON
download
home_pagehttps://github.com/OCA/web
SummaryThis module extends URL widget for displaying anchors with custom labels.
upload_time2024-08-29 06:20:17
maintainerNone
docs_urlNone
authorCamptocamp, Odoo Community Association (OCA)
requires_python>=3.10
licenseLGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            =======================
Web URL widget advanced
=======================

.. 
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! This file is generated by oca-gen-addon-readme !!
   !! changes will be overwritten.                   !!
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
   !! source digest: sha256:3596008f4a705be27d5f63123a0330ad2e83c021846d6fe34e6007e82d5988fe
   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
    :target: https://odoo-community.org/page/development-status
    :alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-LGPL--3-blue.png
    :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
    :alt: License: LGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github
    :target: https://github.com/OCA/web/tree/17.0/web_widget_url_advanced
    :alt: OCA/web
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
    :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_widget_url_advanced
    :alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
    :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0
    :alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

Extend URL widget features to ease customization of anchor's text.

By default, the URL widget will show the plain URL. You can specify an
attribute to provide a static label too.

With this module, you can use a field for link's inner text using
attribute 'text_field'. You can also add a prefix to the link using
attribute 'prefix_name'.

Until 13.0 this functionality was separated in modules
'web_widget_url_advanced' and 'web_widget_prefixed_url'

**Table of contents**

.. contents::
   :local:

Usage
=====

Use url widget as you do usually, then add an extra parameter text_field
to indicate which field (present in the view already) must be used for
the anchor text.

.. code:: xml

   <field name="some_url" widget="url" text_field="another_field" />

M2O fields are supported: display_name is used automatically.

For example, in the partner form, if you want to display the website
link with partner's name as anchor you can do:

.. code:: xml

   <field name="website" widget="url" text_field="name" placeholder="e.g. www.odoo.com"/>

This is going to change the rendering from

|image1|

to

|image2|

Or user can add any hyperlink text using 'prefix_name' attribute

.. code:: xml

   <field name="skype_name" widget="url" prefix_name="skype"/>

both can be applied inside the options attribute too:

.. code:: xml

   <field name="skype_name" widget="url" options="{'prefix_name': 'skype'}"/>

.. |image1| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_widget_url_advanced/static/description/before.png
.. |image2| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_widget_url_advanced/static/description/after.png

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_widget_url_advanced%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

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

Credits
=======

Authors
-------

* Camptocamp

Contributors
------------

-  Simone Orsi <simone.orsi@camptocamp.com>
-  `CorporateHub <https://corporatehub.eu/>`__

   -  Alexey Pelykh <alexey.pelykh@corphub.eu>

-  Jay Vora <jay.vora@serpentcs.com>
-  Swapnesh Shah <s.shah.serpentcs@gmail.com>
-  Joan Sisquella <joan.sisquella@forgeflow.com>
-  Peerapong Supasompob <peerapong.supasompob@gmail.com>
-  Nedas Žilinskas <nedas.zilinskas@avoin.systems>

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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/web <https://github.com/OCA/web/tree/17.0/web_widget_url_advanced>`_ project on GitHub.

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

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OCA/web",
    "name": "odoo-addon-web-widget-url-advanced",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "Camptocamp, Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": null,
    "platform": null,
    "description": "=======================\nWeb URL widget advanced\n=======================\n\n.. \n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! This file is generated by oca-gen-addon-readme !!\n   !! changes will be overwritten.                   !!\n   !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n   !! source digest: sha256:3596008f4a705be27d5f63123a0330ad2e83c021846d6fe34e6007e82d5988fe\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%2Fweb-lightgray.png?logo=github\n    :target: https://github.com/OCA/web/tree/17.0/web_widget_url_advanced\n    :alt: OCA/web\n.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png\n    :target: https://translation.odoo-community.org/projects/web-17-0/web-17-0-web_widget_url_advanced\n    :alt: Translate me on Weblate\n.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png\n    :target: https://runboat.odoo-community.org/builds?repo=OCA/web&target_branch=17.0\n    :alt: Try me on Runboat\n\n|badge1| |badge2| |badge3| |badge4| |badge5|\n\nExtend URL widget features to ease customization of anchor's text.\n\nBy default, the URL widget will show the plain URL. You can specify an\nattribute to provide a static label too.\n\nWith this module, you can use a field for link's inner text using\nattribute 'text_field'. You can also add a prefix to the link using\nattribute 'prefix_name'.\n\nUntil 13.0 this functionality was separated in modules\n'web_widget_url_advanced' and 'web_widget_prefixed_url'\n\n**Table of contents**\n\n.. contents::\n   :local:\n\nUsage\n=====\n\nUse url widget as you do usually, then add an extra parameter text_field\nto indicate which field (present in the view already) must be used for\nthe anchor text.\n\n.. code:: xml\n\n   <field name=\"some_url\" widget=\"url\" text_field=\"another_field\" />\n\nM2O fields are supported: display_name is used automatically.\n\nFor example, in the partner form, if you want to display the website\nlink with partner's name as anchor you can do:\n\n.. code:: xml\n\n   <field name=\"website\" widget=\"url\" text_field=\"name\" placeholder=\"e.g. www.odoo.com\"/>\n\nThis is going to change the rendering from\n\n|image1|\n\nto\n\n|image2|\n\nOr user can add any hyperlink text using 'prefix_name' attribute\n\n.. code:: xml\n\n   <field name=\"skype_name\" widget=\"url\" prefix_name=\"skype\"/>\n\nboth can be applied inside the options attribute too:\n\n.. code:: xml\n\n   <field name=\"skype_name\" widget=\"url\" options=\"{'prefix_name': 'skype'}\"/>\n\n.. |image1| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_widget_url_advanced/static/description/before.png\n.. |image2| image:: https://raw.githubusercontent.com/OCA/web/17.0/web_widget_url_advanced/static/description/after.png\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues <https://github.com/OCA/web/issues>`_.\nIn case of trouble, please check there if your issue has already been reported.\nIf you spotted it first, help us to smash it by providing a detailed and welcomed\n`feedback <https://github.com/OCA/web/issues/new?body=module:%20web_widget_url_advanced%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.\n\nDo not contact contributors directly about support or help with technical issues.\n\nCredits\n=======\n\nAuthors\n-------\n\n* Camptocamp\n\nContributors\n------------\n\n-  Simone Orsi <simone.orsi@camptocamp.com>\n-  `CorporateHub <https://corporatehub.eu/>`__\n\n   -  Alexey Pelykh <alexey.pelykh@corphub.eu>\n\n-  Jay Vora <jay.vora@serpentcs.com>\n-  Swapnesh Shah <s.shah.serpentcs@gmail.com>\n-  Joan Sisquella <joan.sisquella@forgeflow.com>\n-  Peerapong Supasompob <peerapong.supasompob@gmail.com>\n-  Nedas \u017dilinskas <nedas.zilinskas@avoin.systems>\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/web <https://github.com/OCA/web/tree/17.0/web_widget_url_advanced>`_ project on GitHub.\n\nYou are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.\n",
    "bugtrack_url": null,
    "license": "LGPL-3",
    "summary": "This module extends URL widget for displaying anchors with custom labels.",
    "version": "17.0.1.0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/OCA/web"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7aa915766dd3ad8d993a44d537fb36c00cdebc8b4893e9f66a528f9cf20b9684",
                "md5": "6e6f235763b1495498aa977ba9d00105",
                "sha256": "f4ce1a9fed2c3ae39a8ffadebfded4cd2ac1d75c482675803094d6fc4792acae"
            },
            "downloads": -1,
            "filename": "odoo_addon_web_widget_url_advanced-17.0.1.0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "6e6f235763b1495498aa977ba9d00105",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.10",
            "size": 39803,
            "upload_time": "2024-08-29T06:20:17",
            "upload_time_iso_8601": "2024-08-29T06:20:17.367952Z",
            "url": "https://files.pythonhosted.org/packages/7a/a9/15766dd3ad8d993a44d537fb36c00cdebc8b4893e9f66a528f9cf20b9684/odoo_addon_web_widget_url_advanced-17.0.1.0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-29 06:20:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OCA",
    "github_project": "web",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "odoo-addon-web-widget-url-advanced"
}
        
Elapsed time: 0.84435s