Skip to content

Instantly share code, notes, and snippets.

@3mrdev
Created October 8, 2022 16:41
Show Gist options
  • Save 3mrdev/dfcb272011e76603da274cb02af3cb74 to your computer and use it in GitHub Desktop.
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)
<?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