Browse Source

[FIX] fix problem during js file import

pull/490/head
houssine 5 years ago
parent
commit
b2dd434366
  1. 2
      pos_require_product_quantity/__manifest__.py
  2. 12
      pos_require_product_quantity/static/src/xml/templates.xml
  3. 8
      pos_require_product_quantity/views/assets.xml

2
pos_require_product_quantity/__manifest__.py

@ -17,7 +17,7 @@
],
'data': [
'views/pos_config.xml',
'static/src/xml/templates.xml',
'views/assets.xml',
],
'installable': True,
}

12
pos_require_product_quantity/static/src/xml/templates.xml

@ -1,12 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<template id="assets" name="pos_require_product_quantity_extension_assets" inherit_id="point_of_sale.assets">
<xpath expr="." position="inside">
<script type="text/javascript"
src="/pos_require_product_quantity/static/src/js/pos.js">
</script>
</xpath>
</template>
</data>
</odoo>

8
pos_require_product_quantity/views/assets.xml

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<template id="assets" name="pos_require_product_quantity_extension_assets" inherit_id="point_of_sale.assets">
<xpath expr="." position="inside">
<script type="text/javascript" src="/pos_require_product_quantity/static/src/js/pos.js"/>
</xpath>
</template>
</odoo>
Loading…
Cancel
Save