Answer the question
In order to leave comments, you need to log in
How to use your js script in addon?
Good afternoon. odoo \ openers 8
Has its own addon. There is a model with a form =)
In the xml file of this model, we include our custom js file.
<template id="assets_backend" name="addon assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<link rel="stylesheet" href="/addon/static/src/css/main.css"/>
<script type="text/javascript" src="/addon/static/src/js/main.js"></script>
</xpath>
</template>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question