Browse Source

[10.0][MIG] web_widget_datepicker_options: Migrate to 10.0

pull/539/head
Kelly Lougheed 7 years ago
parent
commit
45e23193de
  1. 4
      web_widget_datepicker_options/__manifest__.py
  2. 2
      web_widget_datepicker_options/demo/web_widget_datepicker_options_demo.xml
  3. 20
      web_widget_datepicker_options/static/src/js/datepicker.js
  4. 4
      web_widget_datepicker_options/view/web_widget_datepicker_options_view.xml

4
web_widget_datepicker_options/__manifest__.py

@ -4,13 +4,13 @@
{ {
"name": 'web_widget_datepicker_options', "name": 'web_widget_datepicker_options',
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"depends": [ "depends": [
'base', 'base',
'web', 'web',
], ],
"data": [ "data": [
'view/qweb.xml',
'view/web_widget_datepicker_options_view.xml',
'demo/web_widget_datepicker_options_demo.xml' 'demo/web_widget_datepicker_options_demo.xml'
], ],
"author": "Vincent Vinet, " "author": "Vincent Vinet, "

2
web_widget_datepicker_options/demo/web_widget_datepicker_options_demo.xml

@ -1,6 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<record id="datepicker_options" model="ir.ui.view"> <record id="datepicker_options" model="ir.ui.view">
<field name="name">datepicker_options</field> <field name="name">datepicker_options</field>
<field name="model">res.users</field> <field name="model">res.users</field>
@ -15,4 +16,5 @@
</xpath> </xpath>
</field> </field>
</record> </record>
</odoo> </odoo>

20
web_widget_datepicker_options/static/src/js/datepicker.js

@ -1,22 +1,8 @@
/* /*
OpenERP, Open Source Management Solution
This module copyright (C) 2015 Savoir-faire Linux
(<http://www.savoirfairelinux.com>).
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
Copyright 2015 Savoir-faire Linux
GNU Affero General Public License version 3 or later
http://www.gnu.org/licenses/
*/ */
/*global openerp, _, $ */
odoo.define('web_widget_datepicker_options', function (require) { odoo.define('web_widget_datepicker_options', function (require) {

4
web_widget_datepicker_options/view/qweb.xml → web_widget_datepicker_options/view/web_widget_datepicker_options_view.xml

@ -1,8 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo> <odoo>
<template id="assets_backend" name="web_widget_datepicker_options assets" inherit_id="web.assets_backend"> <template id="assets_backend" name="web_widget_datepicker_options assets" inherit_id="web.assets_backend">
<xpath expr="." position="inside"> <xpath expr="." position="inside">
<script type="text/javascript" src="/web_widget_datepicker_options/static/src/js/datepicker.js"></script> <script type="text/javascript" src="/web_widget_datepicker_options/static/src/js/datepicker.js"></script>
</xpath> </xpath>
</template> </template>
</odoo> </odoo>
Loading…
Cancel
Save