Adding js
file to POSΒΆ
Adding javascript file opens a new set of possibilities in Odoo.
Let take the example of the POS Debt & Credit notebook
module:
<template id="assets" inherit_id="point_of_sale.assets">
<xpath expr="." position="inside">
<script type="text/javascript" src="/pos_debt_notebook/static/src/js/pos.js" />
<link rel="stylesheet" href="/pos_debt_notebook/static/src/css/pos.css" id="pos_debt_notebook-stylesheet" />
</xpath>
</template>