Browse Source
[FIX] web_widget_datepicker_options: Apply fixes after migration to v11
[FIX] web_widget_datepicker_options: Apply fixes after migration to v11
This applies some changes to the module after migration, to conform new guidelines and conventions for version 11.0. In addition, this applies the following fixes: - The widged didn't work when the field was a `datetime` due to a typo in a JS conditional - Replaced `Object.assign()` -> `_.assign()` to improve browser-compatibilitypull/924/head
Luis González
7 years ago
6 changed files with 49 additions and 90 deletions
-
22web_widget_datepicker_options/README.rst
-
22web_widget_datepicker_options/__init__.py
-
38web_widget_datepicker_options/__manifest__.py
-
35web_widget_datepicker_options/static/src/js/datepicker.js
-
10web_widget_datepicker_options/view/qweb.xml
-
12web_widget_datepicker_options/views/assets.xml
@ -1,21 +1 @@ |
|||
# -*- 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/>. |
|||
# |
|||
############################################################################## |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
@ -1,37 +1,19 @@ |
|||
# -*- 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/>. |
|||
# |
|||
############################################################################## |
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). |
|||
|
|||
{ |
|||
"name": 'web_widget_datepicker_options', |
|||
"name": "Web widget datepicker options", |
|||
"summary": "Enhance customization for datepicker widgets", |
|||
"version": "11.0.1.0.0", |
|||
"category": "Web", |
|||
"author": "Vincent Vinet, " |
|||
"Odoo Community Association (OCA)", |
|||
"website": "https://github.com/OCA/web", |
|||
"license": "AGPL-3", |
|||
"depends": [ |
|||
'base', |
|||
'web', |
|||
"web", |
|||
], |
|||
"data": [ |
|||
'view/qweb.xml', |
|||
"views/assets.xml", |
|||
], |
|||
"author": "Vincent Vinet, " |
|||
"Odoo Community Association (OCA)", |
|||
'installable': True, |
|||
"installable": True, |
|||
} |
@ -1,10 +0,0 @@ |
|||
<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> |
|||
|
@ -0,0 +1,12 @@ |
|||
<odoo> |
|||
|
|||
<template id="assets_backend" |
|||
name="web_widget_datepicker_optionsassets" |
|||
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