Created
October 8, 2022 16:41
-
-
Save 3mrdev/dfcb272011e76603da274cb02af3cb74 to your computer and use it in GitHub Desktop.
How to add css and js files to Odoo ? (Odoo 14 and previous versions)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<odoo> | |
<data> | |
<template id="assets_backend" name="doc assets" inherit_id="web.assets_backend"> | |
<xpath expr="." position="inside"> | |
<link rel="stylesheet" href="/your_module/static/src/css/your_css.css"/> | |
<script type="text/javascript" src="/your_module/static/src/js/your_js.js"/> | |
</xpath> | |
</template> | |
</data> | |
</odoo> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment