diff options
| author | Aaron Bohy <aab@odoo.com> | 2019-07-16 13:11:13 +0000 |
|---|---|---|
| committer | Aaron Bohy <aab@odoo.com> | 2019-07-17 06:54:49 +0000 |
| commit | e2893ce3863ddf858ebee00096e06bbf010ddbc2 (patch) | |
| tree | f8648bfb9dc8d3d6d380b1a33dc1c8e74d352153 /addons/web/static/src/js/views/pivot | |
| parent | 00c966b69a8d24fbaafdabfd7ee32d747c8b3783 (diff) | |
[REF] web: factorize no content helper
Different templates were defined for graph, pivot and cohort views
for the no content helper. Those templates were similar (only the
message sometimes slighlty changed). This rev. creates one generic
template used by those three views.
closes odoo/odoo#34916
Signed-off-by: Mathieu Duckerts-Antoine <Polymorphe57@users.noreply.github.com>
Diffstat (limited to 'addons/web/static/src/js/views/pivot')
| -rw-r--r-- | addons/web/static/src/js/views/pivot/pivot_renderer.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/addons/web/static/src/js/views/pivot/pivot_renderer.js b/addons/web/static/src/js/views/pivot/pivot_renderer.js index 29c3424e141..f2d2d24bea8 100644 --- a/addons/web/static/src/js/views/pivot/pivot_renderer.js +++ b/addons/web/static/src/js/views/pivot/pivot_renderer.js @@ -77,7 +77,10 @@ var PivotRenderer = AbstractRenderer.extend({ _render: function () { if (!this._hasContent()) { // display the nocontent helper - this._replaceElement(QWeb.render('PivotView.nodata')); + this._replaceElement(QWeb.render('View.NoContentHelper', { + description: _t("Try to add some records, or make sure that there is at least " + + "one measure and no active filter in the search bar."), + })); return this._super.apply(this, arguments); } |
