{ "info": { "author": "Akretion, Odoo Community Association (OCA)", "author_email": "support@odoo-community.org", "bugtrack_url": null, "classifiers": [ "Framework :: Odoo", "License :: OSI Approved :: GNU Affero General Public License v3", "Programming Language :: Python" ], "description": ".. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg\n :target: http://www.gnu.org/licenses/agpl\n :alt: License: AGPL-3\n\n===============\nMail Inline CSS\n===============\n\nWhen you send HTML emails you can't use style tags but instead you have\nto put inline ``style`` attributes on every element. So from this:\n\n.. code:: html\n\n \n \n
Hej
\n \n\nYou want this:\n\n.. code:: html\n\n \nHej
\n \n\nThis module use premailer library to do this. \n\nIt parses an HTML page, looks up ``style`` blocks\nand parses the CSS. It then uses the ``lxml.html`` parser to modify the\nDOM tree of the page accordingly.\n\nInstallation\n============\n\nTo install this module, you need first to install `premailer` python library with:\n\n.. code:: bash\n\n pip install premailer\n\n\nUsage\n=====\n\nJust use any mail template as Odoo standard feature\n\n.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas\n :alt: Try me on Runbot\n :target: https://runbot.odoo-community.org/runbot/205/10\n\n\nNote:\n\n Odoo with module web_editor already implements this feature on the client side (js).\n This module brings this server side feature for cases without js part. It could the more stable way over the Odoo versions with a stable api in a dedicated library \n with adhoc python unit tests.\n\n\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n