From c395dbb07427f36eb07b0200fa3e12968314e75a Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Mon, 9 Mar 2020 07:36:38 +0000 Subject: [PATCH] [UPD] README.rst --- web_widget_url_advanced/README.rst | 41 ++++++++++++++----- .../static/description/index.html | 31 ++++++++++---- 2 files changed, 53 insertions(+), 19 deletions(-) diff --git a/web_widget_url_advanced/README.rst b/web_widget_url_advanced/README.rst index b6271bd5e..3a2998f53 100644 --- a/web_widget_url_advanced/README.rst +++ b/web_widget_url_advanced/README.rst @@ -14,23 +14,28 @@ Web URL widget advanced :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/12.0/web_widget_url_advanced + :target: https://github.com/OCA/web/tree/13.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-12-0/web-12-0-web_widget_url_advanced + :target: https://translation.odoo-community.org/projects/web-13-0/web-13-0-web_widget_url_advanced :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/162/12.0 + :target: https://runbot.odoo-community.org/runbot/162/13.0 :alt: Try me on Runbot |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 `text` to provide a static label too. +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. +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** @@ -61,18 +66,29 @@ if you want to display the website link with partner's name as anchor you can do This is going to change the rendering from -.. figure:: https://raw.githubusercontent.com/OCA/web/12.0/web_widget_url_advanced/static/description/before.png +.. figure:: https://raw.githubusercontent.com/OCA/web/13.0/web_widget_url_advanced/static/description/before.png to -.. figure:: https://raw.githubusercontent.com/OCA/web/12.0/web_widget_url_advanced/static/description/after.png +.. figure:: https://raw.githubusercontent.com/OCA/web/13.0/web_widget_url_advanced/static/description/after.png + +Or user can add any hyperlink text using 'prefix_name' attribute + +.. code-block:: xml + + + +both can be applied inside the options attribute too: + +.. code-block:: xml + + Known issues / Roadmap ====================== * ```` is not supported in tree views. - Bug Tracker =========== @@ -80,7 +96,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. @@ -97,6 +113,9 @@ Contributors * Simone Orsi * Alexey Pelykh +* Jay Vora +* Swapnesh Shah +* Joan Sisquella Maintainers ~~~~~~~~~~~ @@ -111,6 +130,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/web `_ project on GitHub. +This module is part of the `OCA/web `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/web_widget_url_advanced/static/description/index.html b/web_widget_url_advanced/static/description/index.html index 0b059bdf5..bb46250bd 100644 --- a/web_widget_url_advanced/static/description/index.html +++ b/web_widget_url_advanced/static/description/index.html @@ -367,11 +367,15 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: LGPL-3 OCA/web Translate me on Weblate Try me on Runbot

+

Beta License: LGPL-3 OCA/web Translate me on Weblate Try me on Runbot

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 text to provide a static label too.

-

With this module you can use a field for link’s inner 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

    @@ -401,12 +405,20 @@ if you want to display the website link with partner’s name as anchor you can

    This is going to change the rendering from

    -https://raw.githubusercontent.com/OCA/web/12.0/web_widget_url_advanced/static/description/before.png +https://raw.githubusercontent.com/OCA/web/13.0/web_widget_url_advanced/static/description/before.png

    to

    -https://raw.githubusercontent.com/OCA/web/12.0/web_widget_url_advanced/static/description/after.png +https://raw.githubusercontent.com/OCA/web/13.0/web_widget_url_advanced/static/description/after.png
    +

    Or user can add any hyperlink text using ‘prefix_name’ attribute

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

    both can be applied inside the options attribute too:

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

Known issues / Roadmap

@@ -419,7 +431,7 @@ if you want to display the website link with partner’s name as anchor you can

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.

@@ -435,6 +447,9 @@ If you spotted it first, help us smashing it by providing a detailed and welcome
@@ -444,7 +459,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/web project on GitHub.

+

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

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