Browse Source

add datepicker.js through assets_backend

pull/103/head
Vincent Vinet 10 years ago
parent
commit
e0650cb1bd
  1. 4
      web_widget_datepicker_options/__openerp__.py
  2. 10
      web_widget_datepicker_options/view/qweb.xml

4
web_widget_datepicker_options/__openerp__.py

@ -27,8 +27,8 @@
'base', 'base',
'web', 'web',
], ],
"js": [
'static/src/js/datepicker.js',
"data": [
'view/qweb.xml',
], ],
"author": "Vincent Vinet", "author": "Vincent Vinet",
"installable": True, "installable": True,

10
web_widget_datepicker_options/view/qweb.xml

@ -0,0 +1,10 @@
<openerp>
<data>
<template id="assets_backend" name="web_widget_datepicker_options assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside">
<script type="text/javascript" src="/web_widget_datepicker_options/static/src/js/datepicker.js"></script>
</xpath>
</template>
</data>
</openerp>
Loading…
Cancel
Save