[FIX] web_timeline: Reloading view

[FIX] web_timeline: Reloading view

[FIX] web_timeline: Reloading view
pull/2969/head
tarteo 2019-01-16 14:11:31 +01:00 committed by Carlos Lopez
parent c7c7a24baa
commit 77851f1560
7 changed files with 52 additions and 24 deletions

View File

@ -4,7 +4,7 @@
{ {
'name': "Web timeline", 'name': "Web timeline",
'summary': "Interactive visualization chart to show events in time", 'summary': "Interactive visualization chart to show events in time",
"version": "12.0.1.0.2", "version": "12.0.1.0.3",
"development_status": "Production/Stable", "development_status": "Production/Stable",
'author': 'ACSONE SA/NV, ' 'author': 'ACSONE SA/NV, '
'Tecnativa, ' 'Tecnativa, '

View File

@ -18,9 +18,14 @@ msgstr ""
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: web_timeline
#: selection:ir.ui.view,type:0
msgid "Activity"
msgstr ""
#. module: web_timeline #. module: web_timeline
#. openerp-web #. openerp-web
#: code:addons/web_timeline/static/src/js/timeline_controller.js:240 #: code:addons/web_timeline/static/src/js/timeline_controller.js:243
#, fuzzy, python-format #, fuzzy, python-format
msgid "Are you sure you want to delete this record?" msgid "Are you sure you want to delete this record?"
msgstr "¿Está seguro que desea eliminar este registro?" msgstr "¿Está seguro que desea eliminar este registro?"
@ -131,7 +136,7 @@ msgstr ""
#. module: web_timeline #. module: web_timeline
#. openerp-web #. openerp-web
#: code:addons/web_timeline/static/src/js/timeline_controller.js:243 #: code:addons/web_timeline/static/src/js/timeline_controller.js:246
#, python-format #, python-format
msgid "Warning" msgid "Warning"
msgstr "" msgstr ""

View File

@ -19,9 +19,14 @@ msgstr ""
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n > 1);\n" "Plural-Forms: nplurals=2; plural=(n > 1);\n"
#. module: web_timeline
#: selection:ir.ui.view,type:0
msgid "Activity"
msgstr ""
#. module: web_timeline #. module: web_timeline
#. openerp-web #. openerp-web
#: code:addons/web_timeline/static/src/js/timeline_controller.js:240 #: code:addons/web_timeline/static/src/js/timeline_controller.js:243
#, fuzzy, python-format #, fuzzy, python-format
msgid "Are you sure you want to delete this record?" msgid "Are you sure you want to delete this record?"
msgstr "Êtes vous sûr de vouloir supprimer cet enregistrement ?" msgstr "Êtes vous sûr de vouloir supprimer cet enregistrement ?"
@ -131,7 +136,7 @@ msgstr ""
#. module: web_timeline #. module: web_timeline
#. openerp-web #. openerp-web
#: code:addons/web_timeline/static/src/js/timeline_controller.js:243 #: code:addons/web_timeline/static/src/js/timeline_controller.js:246
#, python-format #, python-format
msgid "Warning" msgid "Warning"
msgstr "" msgstr ""

View File

@ -19,9 +19,14 @@ msgstr ""
"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n" "Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n" "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2;\n"
#. module: web_timeline
#: selection:ir.ui.view,type:0
msgid "Activity"
msgstr ""
#. module: web_timeline #. module: web_timeline
#. openerp-web #. openerp-web
#: code:addons/web_timeline/static/src/js/timeline_controller.js:240 #: code:addons/web_timeline/static/src/js/timeline_controller.js:243
#, fuzzy, python-format #, fuzzy, python-format
msgid "Are you sure you want to delete this record?" msgid "Are you sure you want to delete this record?"
msgstr "Jeste li sigurni da želite brisati ovaj zapis?" msgstr "Jeste li sigurni da želite brisati ovaj zapis?"
@ -131,7 +136,7 @@ msgstr ""
#. module: web_timeline #. module: web_timeline
#. openerp-web #. openerp-web
#: code:addons/web_timeline/static/src/js/timeline_controller.js:243 #: code:addons/web_timeline/static/src/js/timeline_controller.js:246
#, python-format #, python-format
msgid "Warning" msgid "Warning"
msgstr "" msgstr ""

View File

@ -19,9 +19,14 @@ msgstr ""
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. module: web_timeline
#: selection:ir.ui.view,type:0
msgid "Activity"
msgstr ""
#. module: web_timeline #. module: web_timeline
#. openerp-web #. openerp-web
#: code:addons/web_timeline/static/src/js/timeline_controller.js:240 #: code:addons/web_timeline/static/src/js/timeline_controller.js:243
#, fuzzy, python-format #, fuzzy, python-format
msgid "Are you sure you want to delete this record?" msgid "Are you sure you want to delete this record?"
msgstr "Weet je zeker dat je dit record wil verwijderen?" msgstr "Weet je zeker dat je dit record wil verwijderen?"
@ -131,7 +136,7 @@ msgstr ""
#. module: web_timeline #. module: web_timeline
#. openerp-web #. openerp-web
#: code:addons/web_timeline/static/src/js/timeline_controller.js:243 #: code:addons/web_timeline/static/src/js/timeline_controller.js:246
#, python-format #, python-format
msgid "Warning" msgid "Warning"
msgstr "" msgstr ""

View File

@ -13,9 +13,14 @@ msgstr ""
"Content-Transfer-Encoding: \n" "Content-Transfer-Encoding: \n"
"Plural-Forms: \n" "Plural-Forms: \n"
#. module: web_timeline
#: selection:ir.ui.view,type:0
msgid "Activity"
msgstr ""
#. module: web_timeline #. module: web_timeline
#. openerp-web #. openerp-web
#: code:addons/web_timeline/static/src/js/timeline_controller.js:240 #: code:addons/web_timeline/static/src/js/timeline_controller.js:243
#, python-format #, python-format
msgid "Are you sure you want to delete this record?" msgid "Are you sure you want to delete this record?"
msgstr "" msgstr ""
@ -125,7 +130,7 @@ msgstr ""
#. module: web_timeline #. module: web_timeline
#. openerp-web #. openerp-web
#: code:addons/web_timeline/static/src/js/timeline_controller.js:243 #: code:addons/web_timeline/static/src/js/timeline_controller.js:246
#, python-format #, python-format
msgid "Warning" msgid "Warning"
msgstr "" msgstr ""

View File

@ -37,9 +37,9 @@ odoo.define('web_timeline.TimelineController', function (require) {
* @override * @override
*/ */
update: function (params, options) { update: function (params, options) {
this._super.apply(this, arguments); var res = this._super.apply(this, arguments);
if (_.isEmpty(params)){ if (_.isEmpty(params)){
return; return res;
} }
var defaults = _.defaults({}, options, { var defaults = _.defaults({}, options, {
adjust_window: true adjust_window: true
@ -63,17 +63,20 @@ odoo.define('web_timeline.TimelineController', function (require) {
var fields = this.renderer.fieldNames; var fields = this.renderer.fieldNames;
fields = _.uniq(fields.concat(n_group_bys)); fields = _.uniq(fields.concat(n_group_bys));
self._rpc({ return $.when(
model: self.model.modelName, res,
method: 'search_read', self._rpc({
kwargs: { model: self.model.modelName,
fields: fields, method: 'search_read',
domain: domains, kwargs: {
}, fields: fields,
context: self.getSession().user_context, domain: domains,
}).then(function(data) { },
return self.renderer.on_data_loaded(data, n_group_bys, defaults.adjust_window); context: self.getSession().user_context,
}); }).then(function (data) {
return self.renderer.on_data_loaded(data, n_group_bys, defaults.adjust_window);
})
);
}, },
/** /**