You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.1 KiB

  1. .. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
  2. :target: https://www.gnu.org/licenses/agpl
  3. :alt: License: AGPL-3
  4. ========================
  5. QWeb for email templates
  6. ========================
  7. This module was written to allow you to write email templates in QWeb instead
  8. of jinja2. The advantage here is that with QWeb, you can make use of
  9. inheritance and the ``call`` statement, which allows you to reuse designs and
  10. snippets in multiple templates, making your development process simpler.
  11. Furthermore, QWeb views are easier to edit with the integrated ACE editor.
  12. Usage
  13. =====
  14. To use this module, you need to:
  15. #. Select `QWeb` in the field `Body templating engine`
  16. #. Select a QWeb view to be used to render the body field
  17. #. Apart from QWeb's standard variables, you also have access to ``object`` and ``email_template``, which are browse records of the current object and the email template in use, respectively.
  18. .. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
  19. :alt: Try me on Runbot
  20. :target: https://runbot.odoo-community.org/runbot/205/11.0
  21. Bug Tracker
  22. ===========
  23. Bugs are tracked on `GitHub Issues <https://github.com/OCA/social/issues>`_. In case of trouble, please
  24. check there if your issue has already been reported. If you spotted it first,
  25. help us smash it by providing detailed and welcomed feedback.
  26. Credits
  27. =======
  28. Images
  29. ------
  30. * Odoo Community Association: `Icon <https://odoo-community.org/logo.png>`_.
  31. Contributors
  32. ------------
  33. * Holger Brunn <hbrunn@therp.nl>
  34. * Dave Lasley <dave@laslabs.com>
  35. * Carlos Lopez Mite <celm1990@gmail.com>
  36. Do not contact contributors directly about support or help with technical issues.
  37. Maintainer
  38. ----------
  39. .. image:: https://odoo-community.org/logo.png
  40. :alt: Odoo Community Association
  41. :target: https://odoo-community.org
  42. This module is maintained by the OCA.
  43. OCA, or the Odoo Community Association, is a nonprofit organization whose
  44. mission is to support the collaborative development of Odoo features and
  45. promote its widespread use.
  46. To contribute to this module, please visit https://odoo-community.org.