odooodoo-9

Embed html code inside odoo form


How embed e.g youtube in custom module in odoo 9?

After open link from menu show youtube video in form.

Any simple solution?


Solution

  • When you create a view in Odoo, there are some predefined tags that will be treated differently by Odoo when the parsing takes place. For example <form>, <tree> etc. The rest of the tags will be rendered as simple HTML tags. That means that you can write HTML code inside the formview that will be rendered to your client.

    Insert the video in the view as you would insert it on a simple HTML page and it should be rendered correctly, some changes might be needed because Odoo injects some of its own code on the parsing process.