Search 1.9 billion lines of Odoo code on GitHub

web_widget_url_advanced

Author: Camptocamp, Odoo Community Association (OCA)
License: LGPL-3
Branch: 15.0
Repository: ACCOMODATA-BVBA/web
Dependencies: web
Languages: HTML (382, 75.0%), JavaScript (30, 5.9%), Python (16, 3.1%), and reStructuredText (81, 15.9%)
Other branches: 11.0, 12.0, 12.0-web_widget_x2many_2d_matrix_fix, 13.0, 13.0-Cleanup, and 15.0-PR2176
Other repositories: 001101/web-1, 2FM/web, 718981206/web, 965714601/web-1, A-you/web, AITIC/web, Abdulrahman3282/web, AdriaGForgeFlow/web, AlexandreDias23/web, Alfa-90/web, AntoniRomera/web, As400it/web, AsEAsEAsEROMaSe/web, AyoubZahid/web, BADEP/web, BS-creator/web, BT-aestebanez/web, BT-nstuder/web, BenjaHe/web, Bochelly/web, CB-Gran-Canaria/web, CFarhad/web-1, ChanFeei/web, Change2improve/web, Chure43/web, ClancyQiao/web, Colorlessgold/web, ComitorDevTeam/web, CrazyGuo/web, Cy-Ghost/web, DMGSys/web, Daemo00/web, Dan-Stephen/web, DarkIsComing/web, Darknroses/web, Decikingship/web, Dhirendrasinh-SerpentCS/web, Digital5-Odoo/web, DjamelEd/web, Dobtor-OCA/web, DreamSpacexx/web, DudhatShivam/web, ELMARDI0107/web, ERPLibre/web, Ecnart/web, EdyKend/web, EgyCrash/web, ElgatodeSchrodinger/web, Ellafimouheb/web, Feinhe/web, ForgeFlow/web, GSLabIt/web, GabbasovDinar/web, Gabinete-Digital/web, Gio666/web, GlodoUK/oca-web, Glue-Software-Engineering-AG/web, Gonscar88/web, GuavanaUX/web, HirenDangar/web, HomerDeoDatu/web, Ingeos/web, IronStraightManUser/web, Jarsa-dev/web, Jarsa/web, JayVora-SerpentCS/web, JoanMarin/web, JohnLYH/web, JohnmarkEnriquez/web, Jonathan-pr/web, JonathanOsAlc/web, KENLYLST/web, KKamaa/web, KareemAbuzaid/web, KonaERP/web, Leuan12/web, LevelPrime/web, Linekio/web, Lpunk/web, MMorlock/web, MacqGit/web, Mahmoud-Alaa-Eldeen/web, Martronic-SA/web, MathBenTech/web, MaxyMoos/web, MediaJockey/web, MeetKD/web, Mefistous/web, Meyjan/web, MicheleZak/web, MihranThalhath/web, MindAndGo/web, Mixedmick/web, MjAbuz/web, Morsiesml/web, Muhamed-Git/web, Murtaza-Mithaiwala/web, NL66278/web, NeatNerdPrime/web, Netsoro/web, NextERP-Romania/web, Nikul-Chaudhary/web, Nowheresly/web, OCA-MUK/web, OCA/web, Ommo73/web, PESOL/web, Palpid/web, Paul98isep/web, Phaunswater/web, PlanetaTIC/web, QubiQ/web, RLeeOSI/web, SanteLibre/web, Saul-Qiang2/web, SequarSrl/web, SerpentConsultingServices/web, SeuMarco/web, SimoRubi/web, Sirius7/web, SirumTME/web, SolutionSeekers/web, Sote-LS/web, SportPursuit/web, Sroeurnsuon/web, StefanRijnhart/web, Studio73/web, Syci-Consulting/web, TDu/web, TRESCLOUD/web, Tardo/web, Tecnativa/web, VCLS-org/web, VanMoof/web, Vauxoo/web, WEBDEV-PROTEC/web, WilldooIT/web, Zoubid/web, a4435351/web, aaltinisik/web, abgfbr/web, acsone/web, adhoc-dev/web, agemticcl/web, agenterp/web, agrista/odoo-web, ahmedgenina/web, ajas91/web, ajinvn2019/web, akloptim/web, akretion/web, alan80080/web, algiopensource/web, ammarofficewla/web, anandkansagra/web, anderson2304/web, androettop/web, anhvu-sg/web, aniket852016/web, anishagg17/web, ansinaesmejor/web, antilhue/web, arkyalpyae/web, asphaltzipper/web, athirapnair/web, aurestic/web, baruklucifer/web, bizzappdev/web, blooparksystems/web, bmya/web, boky1993/web, bolderdene123/web, boskowski/web, brain-tec/web, brian10048/web, britoederr/web, bud-e/web, camptocamp/web, cenit-io/odoo-cenit, changshuai1/web, conandark/web, coopiteasy/web, cormaza/web, damcar/web, dani-xtendoo/web, danztensai/web, daramousk/web, darshan-odoo/web, delgerS/web, denislour/web, denvian/web, diagramsoftware/web, diggy128/web, dingguijin/web, dkruegerkj/web, dlorenzop87/web, dndoanh/web, dong-z/web, druidoo-dev/web, duyisu/web, dvalladares66/web, dynapps/web, eLBati/web, ecosoft-odoo/web, edlwise/web, ehsu0407/web, elteatroescultura/web, emagdalenaC2i/web, eng-eslam-a-y/web, enmasys/web, epierre3/web, ernestotejeda/web, espo-tony/web, essamcis/web, etobella/web, evansadji/web, exosoftware/oca-web, factorlibre/web, falinwasales/web, fallewi/web, farah-cherif/web, farinoire/web, fjouatte/web, fmdl/web, focusate/web-oca, foramaktiv/web, gab-net/web, gajendra117/web-2, gastonfeng/web, gfcapalbo/web, gimebreak/web, grindtildeath/web, gtorresemmanuel/web, guewen/web, gurneyalex/web, harinathsrinivasan/web, haroldtamo/web, hassanfadl/web, hbrunn/web, hinfo506/web, hiren-serpentcs/web, hpatelserpentcs/web, huntergps/web, i-vyshnevska/web, iSqXIE/web, ibudgie/web, ideaspositivas-group/web, ilecyang/web, inforpordev/web, initOS/web, inspiredbusiness/web, insscn/web, intoqh/web, isabellerichard/web, it-projects-llc/web, itspeepo/web, jacky82669513/web, jans23/web, janverb/web, javiergm02/web, jcdrubay/web, jchanme/web, jeroen7s/web, jguerriat/web, jhasolo/web, jhonaelramos/web, jimmyec/web, jobiols/oca-web, johnotoole68/web, josueBulle/web, julenalgios/web, kamasteve/web, karlis-dreizis/web, karol1985/web, katiakweb/web, kejuswiss/web, keylor2906/web, khanvuthy88/web, khidir15/web-1, killvis/web, kitworks-systems/web, kkasing11/web, kmee/web, kos94ok-3D/web, kurniawanlucky/web, lbaldi/web, leanhtuan1996/web, legalsylvain/web, lembregtse/web, lgharib/web, lideritjnma/web, lilotter45/web, lincersolucoes/oca-web, lincoln6delta/web, lisidan/web, liulongyunwanfeng/web, liunux4odoo/web, loftwah/web, lpajaresv/web, lubw/web, luisrodriguez-e2e/web, lweiming/web, magnuscolors/web, manuelcalerosolis/web, marcelomora/web, marcos-mendez/web, mashanz/web, mayankksolves/web, mcojocaru/web, mediaengagers/web, mgosai/web, mhadi12/web, mharenz/web, miguelangelorocha/web, mingkongz/web, mingleecqu/web, mochammadrizanaufal/web, modoolar/oca-web, mohamedhagag/web, moustafakhairy4/web, mrshelly/web, mulaudzicalvin/web, multidadosti-erp/web, munawirsyam/web, murtuzasaleh/web, myonnet/oca-web, nawawi/OCA_web, netzweltmex/web, newtratip/web, ngrandjean/web, nikhil150355/web, nikul-serpentcs/web, nilshamerlinck/web, niulinlnc/web, nmenkov/web, noorealam96/web, novawish/web, nrdroque/web, ntsirintanis/web, ob0420/web, odoogap/web, okapandya/web, onurugur/web, onyanga/web, orlandosorio/web, osamaegypt/web, osvalr/web, p-tombez/web, paraita/web, pegonzalezspesol/web, petrus-v/web, phuctranerp/web, piensom/web, pkagori/web, pnajman-modoolar/web-1, popcomputadores-desenv/web, popsolutions/web, praxigento/oca-web, presenceverte/web, ps-tubtim/web, putao615/web, pythoner-3k/web, qgzhiguo/web, qibinlin/web, quentinDupont/web, quentingigon/web, raizs/web, redblow/web, redcor/web, remi-filament/web, richard-willdooit/web, ristecona/web, robertsoh/web, robertsvx27/web, royalline1/web, rquintanam/web, ruben-tonetto/web, rven/web, sahil-navadiya/web, samsagaz/web, sanjay-hercules/web, sanube/web, savoirfairelinux/web, scottliu/web, sebalix/web, sergiocorato/web, servetechafrica/web, sewisoft/web, sgajardo/web, sgheller/web, shengyf1/web, shiram/web, shurshilov/web-1, sidpcomissario/web, simahawk/web, sinandurgut07/web, singhadarsh0403/web, siweilai/web, sodexis/web, solvosci/web, srikesh/web, ssaid/web, sschmid-test-org/web, steigendit/web, steingabelgaard/web, stevematos/web, stuti135/web, sudhir-erpharbor/web, sunflowerit/web, syci/web, szellmark20/web, takinobori/oca-web, tarteo/web, tegin/web, thoongnv/web, tianshangjun/web, tirix/web, tirma-sa/web, tpa-odoo/web, trevi-software/web, trionoharjadi/web, trobz/web, tvtma/web, unitek-solusi/OCA-web, ursais/web, valtterilattu/web, vanderperre/web, vasiljevicmarko/web, vdedyukhin/web, veetoki/web, versada/web, vertelab/web, vialaurea/OCA-web, vnsofthe/web, wahello/oca-web, waveFuncjs/web, willmakenoise/web, wuhuizhong/web, x0rzkov/odoo-web, xavidj/web, xcgd/web, xiaowenzi/web, xiaoyi-yanqing/web, xtjie/web, y2gsmith/web, yanpierchirino/web, zarumaru/web, zcyuefan/web, zeroheure/web, and zeroincombenze/web

<h1 class="title">Web URL widget advanced</h1> <p><a class="reference external" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external" href="https://github.com/OCA/web/tree/15.0/web_widget_url_advanced"><img alt="OCA/web" src="https://img.shields.io/badge/github-OCA%2Fweb-lightgray.png?logo=github" /></a> <a class="reference external" href="https://translation.odoo-community.org/projects/web-15-0/web-15-0-web_widget_url_advanced"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external" href="https://runbot.odoo-community.org/runbot/162/15.0"><img alt="Try me on Runbot" src="https://img.shields.io/badge/runbot-Try%20me-875A7B.png" /></a></p> <p>Extend URL widget features to ease customization of anchor's text.</p> <p>By default, the URL widget will show the plain URL. You can specify an attribute to provide a static label too.</p> <p>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'.</p> <p>Until 13.0 this functionality was separated in modules 'web_widget_url_advanced' and 'web_widget_prefixed_url'</p> <p><strong>Table of contents</strong></p> <div class="contents local topic" id="contents"> <ul class="simple"> <li><a class="reference internal" href="#usage" id="id1">Usage</a></li> <li><a class="reference internal" href="#known-issues-roadmap" id="id2">Known issues / Roadmap</a></li> <li><a class="reference internal" href="#bug-tracker" id="id3">Bug Tracker</a></li> <li><a class="reference internal" href="#credits" id="id4">Credits</a><ul> <li><a class="reference internal" href="#authors" id="id5">Authors</a></li> <li><a class="reference internal" href="#contributors" id="id6">Contributors</a></li> <li><a class="reference internal" href="#maintainers" id="id7">Maintainers</a></li> </ul> </li> </ul> </div> <a name="usage"></a> <h2><a class="toc-backref" href="#id1">Usage</a></h2> <p>Use <cite>url</cite> widget as you do usually, then add an extra parameter <cite>text_field</cite> to indicate which field (present in the view already) must be used for the anchor text.</p> <pre> <code lang="xml">&lt;field name=&quot;some_url&quot; widget=&quot;url&quot; text_field=&quot;another_field&quot; /&gt;</code> </pre> <p>M2O fields are supported: <cite>display_name</cite> is used automatically.</p> <p>For example, in the partner form, if you want to display the website link with partner's name as anchor you can do:</p> <pre> <code lang="xml">&lt;field name=&quot;website&quot; widget=&quot;url&quot; text_field=&quot;name&quot; placeholder=&quot;e.g. www.odoo.com&quot;/&gt;</code> </pre> <p>This is going to change the rendering from</p> <div class="figure"> <img alt="https://raw.githubusercontent.com/OCA/web/15.0/web_widget_url_advanced/static/description/before.png" src="https://raw.githubusercontent.com/OCA/web/15.0/web_widget_url_advanced/static/description/before.png" /> </div> <p>to</p> <div class="figure"> <img alt="https://raw.githubusercontent.com/OCA/web/15.0/web_widget_url_advanced/static/description/after.png" src="https://raw.githubusercontent.com/OCA/web/15.0/web_widget_url_advanced/static/description/after.png" /> </div> <p>Or user can add any hyperlink text using 'prefix_name' attribute</p> <pre> <code lang="xml">&lt;field name=&quot;skype_name&quot; widget=&quot;url&quot; 'prefix_name': 'skype'/&gt;</code> </pre> <p>both can be applied inside the options attribute too:</p> <pre> <code lang="xml">&lt;field name=&quot;skype_name&quot; widget=&quot;url&quot; options=&quot;{'prefix_name': 'skype'}&quot;/&gt;</code> </pre> <a name="known-issues-roadmap"></a> <h2><a class="toc-backref" href="#id2">Known issues / Roadmap</a></h2> <ul class="simple"> <li><code>&lt;field text_field=&quot;foo&quot;/&gt;</code> is not supported in tree views.</li> </ul> <a name="bug-tracker"></a> <h2><a class="toc-backref" href="#id3">Bug Tracker</a></h2> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/web/issues">GitHub Issues</a>. 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 <a class="reference external" href="https://github.com/OCA/web/issues/new?body=module:%20web_widget_url_advanced%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="credits"></a> <h2><a class="toc-backref" href="#id4">Credits</a></h2> <a name="authors"></a> <h3><a class="toc-backref" href="#id5">Authors</a></h3> <ul class="simple"> <li>Camptocamp</li> </ul> <a name="contributors"></a> <h3><a class="toc-backref" href="#id6">Contributors</a></h3> <ul class="simple"> <li>Simone Orsi &lt;<a class="reference external" href="mailto:simone.orsi&#64;camptocamp.com">simone.orsi&#64;camptocamp.com</a>&gt;</li> <li><a class="reference external" href="https://corporatehub.eu/">CorporateHub</a><ul> <li>Alexey Pelykh &lt;<a class="reference external" href="mailto:alexey.pelykh&#64;corphub.eu">alexey.pelykh&#64;corphub.eu</a>&gt;</li> </ul> </li> <li>Jay Vora &lt;<a class="reference external" href="mailto:jay.vora&#64;serpentcs.com">jay.vora&#64;serpentcs.com</a>&gt;</li> <li>Swapnesh Shah &lt;<a class="reference external" href="mailto:s.shah.serpentcs&#64;gmail.com">s.shah.serpentcs&#64;gmail.com</a>&gt;</li> <li>Joan Sisquella &lt;<a class="reference external" href="mailto:joan.sisquella&#64;forgeflow.com">joan.sisquella&#64;forgeflow.com</a>&gt;</li> <li>Peerapong Supasompob &lt;<a class="reference external" href="mailto:peerapong.supasompob&#64;gmail.com">peerapong.supasompob&#64;gmail.com</a>&gt;</li> </ul> <a name="maintainers"></a> <h3><a class="toc-backref" href="#id7">Maintainers</a></h3> <p>This module is maintained by the OCA.</p> <a class="reference external image-reference" href="https://odoo-community.org"><img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" /></a> <p>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.</p> <p>This module is part of the <a class="reference external" href="https://github.com/OCA/web/tree/15.0/web_widget_url_advanced">OCA/web</a> project on GitHub.</p> <p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>