diff options
| author | Hardik Prajapati <hpr@odoo.com> | 2020-04-21 11:25:07 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-04-29 07:08:15 +0000 |
| commit | c2d5a4beaf7c73e51d9a45993dda0fc84627d086 (patch) | |
| tree | 4485ef673c115815e32ceadc9920f0c99bfeb656 /addons/web/static/src/xml | |
| parent | b2f87c7c8ec9b5f484e0d2daa9f3427bf659fce6 (diff) | |
[FIX] web: pivot view nocontenthelp message
Since the commit https://github.com/odoo/odoo/commit/46cf65d68e9c13193dff4b563b9b0bbb2199dfc1
when help is not defined in action then nocontenthelp is displayed as
[object, object] due to the desciption passed from renderder of the
pivot view.
So in this commit while calling the NoContentHelper pass the
descitption as string instead of jquery element.
we can use the t-value in template but that string will create
issue for transalation so pass the desctiption from the pivot render.
closes odoo/odoo#50347
Taskid: 2240167
Closes: #49859
X-original-commit: c7cc672aba669175280d619ad39b14daefd7733f
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/web/static/src/xml')
| -rw-r--r-- | addons/web/static/src/xml/pivot.xml | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/addons/web/static/src/xml/pivot.xml b/addons/web/static/src/xml/pivot.xml index 0b16af71f0c..1864052f0be 100644 --- a/addons/web/static/src/xml/pivot.xml +++ b/addons/web/static/src/xml/pivot.xml @@ -2,11 +2,7 @@ <templates> <div t-name="web.PivotRenderer" class="o_pivot" owl="1"> - <t t-if="!props.hasData || !props.measures.length" t-call="web.NoContentHelper"> - <t t-set="description"> - Try to add some records, or make sure that there is at least one measure and no active filter in the search bar - </t> - </t> + <t t-if="!props.hasData || !props.measures.length" t-call="web.NoContentHelper"/> <table t-else="1" class="table-hover table-sm table-bordered" t-att-class="{ o_enable_linking: !props.disableLinking }"> <thead> <tr t-foreach="props.table.headers" t-as="row" t-key="'header_' + row_index"> |
