From c2e95ec679551b64c0bbc2eabe5229d037e23a79 Mon Sep 17 00:00:00 2001 From: Vincent Vinet Date: Tue, 24 Mar 2015 10:44:50 -0400 Subject: [PATCH] use include instead of extend --- web_widget_datepicker_options/static/src/js/datepicker.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_widget_datepicker_options/static/src/js/datepicker.js b/web_widget_datepicker_options/static/src/js/datepicker.js index 6fade819..304f119b 100644 --- a/web_widget_datepicker_options/static/src/js/datepicker.js +++ b/web_widget_datepicker_options/static/src/js/datepicker.js @@ -18,11 +18,11 @@ */ /*global openerp, _, $ */ -openerp.web_datetime_options = function (instance) { +openerp.web_widget_datepicker_options = function (instance) { "use strict"; - instance.web.form.FieldDatetime = instance.web.form.FieldDatetime.extend({ + instance.web.form.FieldDatetime.include({ initialize_content: function() { this._super(); var self = this; @@ -36,7 +36,7 @@ openerp.web_datetime_options = function (instance) { } }); - instance.web.form.FieldDate = instance.web.form.FieldDate.extend({ + instance.web.form.FieldDate.include({ initialize_content: function() { this._super(); var self = this;