mirror of https://github.com/OCA/web.git
[FIX] web_timeline: Reloading view
[FIX] web_timeline: Reloading view [FIX] web_timeline: Reloading viewpull/2969/head
parent
c7c7a24baa
commit
77851f1560
|
@ -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, '
|
||||||
|
|
|
@ -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 ""
|
||||||
|
|
|
@ -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 ""
|
||||||
|
|
|
@ -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 ""
|
||||||
|
|
|
@ -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 ""
|
||||||
|
|
|
@ -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 ""
|
||||||
|
|
|
@ -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,6 +63,8 @@ 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));
|
||||||
|
return $.when(
|
||||||
|
res,
|
||||||
self._rpc({
|
self._rpc({
|
||||||
model: self.model.modelName,
|
model: self.model.modelName,
|
||||||
method: 'search_read',
|
method: 'search_read',
|
||||||
|
@ -73,7 +75,8 @@ odoo.define('web_timeline.TimelineController', function (require) {
|
||||||
context: self.getSession().user_context,
|
context: self.getSession().user_context,
|
||||||
}).then(function (data) {
|
}).then(function (data) {
|
||||||
return self.renderer.on_data_loaded(data, n_group_bys, defaults.adjust_window);
|
return self.renderer.on_data_loaded(data, n_group_bys, defaults.adjust_window);
|
||||||
});
|
})
|
||||||
|
);
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue