Browse Source
Merge pull request #950 from vauxoo-dev/11.0-oca_datepicker_fix_parent_undefined-luisg
[FIX] web_widget_datepicker_options: Fix error when field is undefined
pull/838/merge
Pedro M. Baeza
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
1 deletions
-
web_widget_datepicker_options/__manifest__.py
-
web_widget_datepicker_options/static/src/js/datepicker.js
|
|
@ -3,7 +3,7 @@ |
|
|
|
{ |
|
|
|
"name": "Web widget datepicker options", |
|
|
|
"summary": "Enhance customization for datepicker widgets", |
|
|
|
"version": "11.0.1.0.0", |
|
|
|
"version": "11.0.1.0.1", |
|
|
|
"category": "Web", |
|
|
|
"author": "Vincent Vinet, " |
|
|
|
"Odoo Community Association (OCA)", |
|
|
|
|
|
@ -11,6 +11,7 @@ odoo.define('web_widget_datepicker_options.datepicker', function(require) { |
|
|
|
this._super.apply(this, arguments); |
|
|
|
var parent = this.getParent(); |
|
|
|
if(typeof parent !== 'undefined' |
|
|
|
&& typeof parent.field !== 'undefined' |
|
|
|
&& parent.field.type === 'date' |
|
|
|
&& parent.nodeOptions){ |
|
|
|
var datepicker = parent.nodeOptions.datepicker; |
|
|
@ -24,6 +25,7 @@ odoo.define('web_widget_datepicker_options.datepicker', function(require) { |
|
|
|
this._super.apply(this, arguments); |
|
|
|
var parent = this.getParent(); |
|
|
|
if(typeof parent !== 'undefined' |
|
|
|
&& typeof parent.field !== 'undefined' |
|
|
|
&& parent.field.type === 'datetime' |
|
|
|
&& parent.nodeOptions){ |
|
|
|
var datepicker = parent.nodeOptions.datepicker; |
|
|
|