Browse Source
[9.0][MIG] web_widget_datepicker_options: Upgrade to v9 (#546)
[9.0][MIG] web_widget_datepicker_options: Upgrade to v9 (#546)
* [9.0][MIG] web_widget_datepicker: Upgrade to v9 * Change headers to shorter version and openerp tags to odoo tags * Update Readme * Improvementpull/524/merge
Kelly Lougheed
8 years ago
committed by
Dave Lasley
6 changed files with 78 additions and 81 deletions
-
19web_widget_datepicker_options/README.rst
-
24web_widget_datepicker_options/__init__.py
-
31web_widget_datepicker_options/__openerp__.py
-
18web_widget_datepicker_options/demo/web_widget_datepicker_options_demo.xml
-
51web_widget_datepicker_options/static/src/js/datepicker.js
-
16web_widget_datepicker_options/view/qweb.xml
@ -1,21 +1,3 @@ |
|||||
# -*- encoding: utf-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/>. |
|
||||
# |
|
||||
############################################################################## |
|
||||
|
# -*- coding: utf-8 -*- |
||||
|
# Copyright 2015 Savoir-faire Linux |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
@ -1,37 +1,20 @@ |
|||||
# -*- encoding: utf-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/>. |
|
||||
# |
|
||||
############################################################################## |
|
||||
|
# -*- coding: utf-8 -*- |
||||
|
# Copyright 2015 Savoir-faire Linux |
||||
|
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
||||
|
|
||||
{ |
{ |
||||
"name": 'web_widget_datepicker_options', |
"name": 'web_widget_datepicker_options', |
||||
"version": "8.0.1.0.0", |
|
||||
|
"version": "9.0.1.0.0", |
||||
"depends": [ |
"depends": [ |
||||
'base', |
'base', |
||||
'web', |
'web', |
||||
], |
], |
||||
"data": [ |
"data": [ |
||||
'view/qweb.xml', |
'view/qweb.xml', |
||||
|
'demo/web_widget_datepicker_options_demo.xml' |
||||
], |
], |
||||
"author": "Vincent Vinet, " |
"author": "Vincent Vinet, " |
||||
"Odoo Community Association (OCA)", |
"Odoo Community Association (OCA)", |
||||
'installable': False, |
|
||||
"active": False, |
|
||||
|
"license": "AGPL-3", |
||||
|
'installable': True, |
||||
} |
} |
@ -0,0 +1,18 @@ |
|||||
|
<?xml version="1.0" encoding="utf-8"?> |
||||
|
|
||||
|
<odoo> |
||||
|
<record id="datepicker_options" model="ir.ui.view"> |
||||
|
<field name="name">datepicker_options</field> |
||||
|
<field name="model">res.users</field> |
||||
|
<field name="inherit_id" ref="base.view_users_form"/> |
||||
|
<field name="arch" type="xml"> |
||||
|
<xpath expr="//page[@name='access_rights']" position="inside"> |
||||
|
<h2>Datepicker Demo</h2> |
||||
|
<label for="date"/> |
||||
|
<field name="date" options='{"datepicker": {"calendarWeeks": false}}'/><br/> |
||||
|
<label for="create_date"/> |
||||
|
<field name="create_date" options="{'datepicker':{'calendarWeeks': false}}"/> |
||||
|
</xpath> |
||||
|
</field> |
||||
|
</record> |
||||
|
</odoo> |
@ -1,10 +1,8 @@ |
|||||
<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> |
|
||||
|
<odoo> |
||||
|
<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> |
||||
|
</odoo> |
||||
|
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue