Search 1.9 billion lines of Odoo code on GitHub

email_template_qweb

Author: Therp BV,Odoo Community Association (OCA)
License: AGPL-3
Branch: 11.0
Repository: acsone/social
Dependencies: mail
Languages: PO File (316, 58.1%), Python (107, 19.7%), XML (72, 13.2%), and reStructuredText (49, 9.0%)
Other branches: 10-mig-mail_optional_autofollow-ape, 10.0, 10.0-brb_master, 10.0-fix-mail_optional_follower_notification-ape, 10.0-imp_hide_checkbox_mass_mailing_drt, 10.0-lih_master, 10.0-liser_master, 10.0-lns_master, 10.0-mail-attach-inheritance-ape, 10.0-oba_master, 12.0, 12.0-ADD_mail_header_notified_partner-len, 12.0-asw_master, 12.0-composernoautofollow-len, 12.0-mail_optional_follower_notification-sbj, 12.0-mig-mail_footer_notified_partner-len, 12.0-prg_master, 13.0, 13.0-fix-travis, 13.0-mail-activity-board-add-smartlink-lmi, 13.0-mail_template_multi_attachment, 13.0-mig-mail_as_letter, 13.0-mig-mail_optional_follower_notification, 13.0-mig-mail_template_substitute-sbj, 13.0-slg_master, 13.0-wpu_master, 14.0, 14.0-mail_optional_follower_notification-sbj, 14.0-mig-mail_optional_autofollow, 14.0-mig-mail_template_multi_attachment, 8.0, 8.0-add-optional-follower-notifications-ape, 8.0-lih_master, 9.0, 9.0-add-optional-follower-notifications-lmi, 9.0-backport_mail_improved_tracking_value_tbi, 9.0-brb_master, 9.0-fix_mail_optional_follower_notification_fr_tbi, 9.0-fix_mail_optional_follower_notification_tbi, 9.0-fkr_master, 9.0-lou_master, 9.0-mail-activity, 9.0-mail-activity-sudo, 9.0-mail_optional_autofollow-lmi, 9.0-ola_master, 9.0-slg_master, lih_master, and oca-port-pr-598-from-13.0-to-14.0
Other repositories: 2FM/social, ACCOMODATA-BVBA/social, AITIC/social, AMhadhbi/social, AdriaGForgeFlow/social, Alfa-90/social, BADEP/social, BT-fgarbely/social, BT-scchmid-test/social, BeopenMX/social, Bubbles-IT/social, CB-Gran-Canaria/social, Callino/social, Change2improve/social, ClearCorp/oca-social, CompassionCH/social, Digital5-Odoo/social, Dobtor-OCA/social, DucTruongKomit/social, ERPLibre/social, ForgeFlow/social, Gabinete-Digital/social, Glue-Software-Engineering-AG/social, Gofekra/social, Hasnur/social, ICTSTUDIO/social, ITISAG-OCA/social, Ingeos/social, Jarsa/social, JazziMc/social, Judystudy/social, KasunDA/social, Kiplangatdan/social, KomarovAlea/social, LasLabs/social, MadsackMediaStore/social, MathBenTech/social, MediaJockey/social, NL66278/social, NeatNerdPrime/social, NextERP-Romania/social, Nooka10/social, OCA-MUK/social, OCA/social, ORETEK/social, OpencloudPro/social, QubiQ/social, RLeeOSI/social, Rad0van/social, SDIsl/social, SanteLibre/social, SequarSrl/social, SeuMarco/social, SimoRubi/social, SolutionSeekers/social, StefanRijnhart/social, Studio73/social, Syci-Consulting/social, TDu/social, TRESCLOUD/social, Tecnativa/social, Tonow-c2c/social, Vauxoo/social, VisiionSolucionesTecnologicas/social, VitalPet/social, YogeshMahera-SerpentCS/social, a0c/social, aaltinisik/social, adhoc-dev/social, adolfoeliazat/social, adrienpeiffer/social, agenterp/social, agenterpgmbh/social, agrista/odoo-social, ajaniszewska-dev/social, akretion/social, alexlafalce/social, anderswallenquist/social, anhvu-sg/social, ansinaesmejor/social, antonyrajserpentcs/social, anybox/social, apachesep/social, apertoso/social, apetbiz/social, archetipo/social, aryajimbaran/social, auditum-lko/social, aurestic/social, avoinsystems/social, ayush5198/social, bealdav/social, bishalgit/social, bitroniq/social, brain-tec/social, brainbeanapps/social, camptocamp/social, cedvict/social, celm1990/social, chacatico/social, cocox/social, codewr/social, coopiteasy/social, crnd-inc/social, cunguito/social, dajuayen/social, damcar/social, daramousk/social, ddico/social, denislour/social, dev00007/social, diagramsoftware/social, diegobgl/social, diggy128/social, dndoanh/social, dozymoe/social, dreispt/social, druidoo-dev/social, eLBati/social, eezee-it/social, elmeknouni/social, elvirekemajou/social, emagdalenaC2i/social, ermannognan/social, ernestotejeda/social, eslammohamed13/social, etobella/social, eugentaga/social, exosoftware/oca-social, extrememicro/social, fmdl/social, focusate/oca-social, gab-net/social, gfcapalbo/social, git-service-it-ar/social, grindtildeath/social, gurneyalex/social, haroldtamo/social, hbrunn/server-tools, hbrunn/social, hibou-io/oca-social, hinfo506/social, i-vyshnevska/social, iRichGit/social, igallart/social, iledarn/social, imranissufo/social, inforconseil/social, inspiredbusiness/social, isos/social, jacky82669513/social, jerrodmartin/social, jobiols/oca-social, kevin070982/social, kryskool/social, legalsylvain/social, leonidaspe/social, leonidasthe300/social, lesdekock/social, lincersolucoes/oca-social, logicasoftadmin/social, manuelcalerosolis/social, marcozink/social, marionumza/social, markrobinson85/social, masiunas/social, mavs2011bs/social, mechsoftdigital/social, mgielissen/social, minhyk/social, mjadily/social, modoolar/social, molandtoxx/social, moltisinc/social, mozaik-association/social, mpanarin/social, myceliandre/social, nilshamerlinck/social, niulinlnc/social, noorealam96/social, odoobgorg/OCA-social, odoogap/social, odoonz/social, ontruck/social, open-synergy/social, osfp-Pakistan/social, osiell/social, p-tombez/social, paulius-sladkevicius/social, pegonzalezspesol/social, phucngta/social, popama/social, pscloud/social, publidex/social, redblow/social, redcor/social, rlizana/social, rossasa/social, rsullivan2704/social, rubensben/social, ruuter/social, sadeqamin/social, sanube/social, savoirfairelinux/social, scbrianti/social, semamca35/social, sergiocorato/social, serpentcs-dev1/social, sewisoft/social, shiram/social, simahawk/social, skeller1/social, solarprocurement/social, spitronello/social, sschmid-test-org/social, steingabelgaard/social, sunflowerit/social, sygel-technology/social, tafaRU/social, takinobori/oca-social, takobi-online/social, tansadio/social, tbaden/social, tegin/social, tfossoul/social, thinkopensolutions/oca-social, thinkwelltwd/social, thomaspot/social, tirma-sa/social, tosink/social, tpalan/social, tpxxx/social, tschanzt/social, ursais/social, valmarnet/social, vcloud9ray/social, versada/social, wahhid/social, westlyou/social, x0rzkov/odoo-social, xavidj/social, xcgd/social, xduran/social, xpansa/social, y2gsmith/social, yusniermatos/social, zestsoftware/social, and zmakrelouf/social

<a class="reference external image-reference" href="https://www.gnu.org/licenses/agpl"><img alt="License: AGPL-3" src="https://img.shields.io/badge/license-AGPL--3-blue.png" /></a> <a name="qweb-for-email-templates"></a> <h2>QWeb for email templates</h2> <p>This module was written to allow you to write email templates in QWeb instead of jinja2. The advantage here is that with QWeb, you can make use of inheritance and the <code>call</code> statement, which allows you to reuse designs and snippets in multiple templates, making your development process simpler. Furthermore, QWeb views are easier to edit with the integrated ACE editor.</p> <a name="usage"></a> <h3>Usage</h3> <p>To use this module, you need to:</p> <ol class="arabic simple"> <li>Select <cite>QWeb</cite> in the field <cite>Body templating engine</cite></li> <li>Select a QWeb view to be used to render the body field</li> </ol> <p><strong>Variables</strong></p> <p>Apart from QWeb's standard variables, you also have access to:</p> <ul class="simple"> <li><code>object</code> browse record of the current object</li> <li><code>email_template</code> browse record of email template in use</li> <li><code>record</code> depending on where the message is sent, <code>object</code> can be either the real record or the mail message used to send the email. In standard J2 templates this variable is available only for messages and only in the ctx. This variable tries to solve this issue and provides always the same variable.</li> <li><code>record_name</code> always provide the display name of current record</li> <li>In addition to these, you'll find all the variables available for J2 templates: <code>format_date</code>, <code>format_tz</code>, <code>format_amount</code>, <code>user</code>, <code>ctx</code>. These will make easier to port existing J2 templates to Qweb.</li> </ul> <a class="reference external image-reference" href="https://runbot.odoo-community.org/runbot/205/11.0"><img alt="Try me on Runbot" src="https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas" /></a> <a name="bug-tracker"></a> <h3>Bug Tracker</h3> <p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/social/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 smash it by providing detailed and welcomed feedback.</p> <a name="credits"></a> <h3>Credits</h3> <a name="images"></a> <h4>Images</h4> <ul class="simple"> <li>Odoo Community Association: <a class="reference external" href="https://odoo-community.org/logo.png">Icon</a>.</li> </ul> <a name="contributors"></a> <h4>Contributors</h4> <ul class="simple"> <li>Holger Brunn &lt;<a class="reference external" href="mailto:hbrunn&#64;therp.nl">hbrunn&#64;therp.nl</a>&gt;</li> <li>Dave Lasley &lt;<a class="reference external" href="mailto:dave&#64;laslabs.com">dave&#64;laslabs.com</a>&gt;</li> <li>Carlos Lopez Mite &lt;<a class="reference external" href="mailto:celm1990&#64;gmail.com">celm1990&#64;gmail.com</a>&gt;</li> <li>Simone Orsi &lt;<a class="reference external" href="mailto:simone.orsi&#64;camptocamp.com">simone.orsi&#64;camptocamp.com</a>&gt;</li> </ul> <p>Do not contact contributors directly about support or help with technical issues.</p> <a name="maintainer"></a> <h4>Maintainer</h4> <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>This module is maintained by the OCA.</p> <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>To contribute to this module, please visit <a class="reference external" href="https://odoo-community.org">https://odoo-community.org</a>.</p>