You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It would be great to have the same in ODS report. Currently, to avoid to display "False" when the email is empty we have to use in the ODS template : ${o.email or ''}
The text was updated successfully, but these errors were encountered:
Our conclusion is that we can't have the escape_false=True behavior for ODS reports. This is because the fields such as ${o.email} is a raw genshi expression, which is rendered in py3o.template by MarkupTemplate(), and there is no way to tell MarkupTemplate() to render False expressions as empty string.
@faide Do you confirm our point of view ? Otherwise, do you have an idea how to make escape_false=True work on ODS templates ?
SimoneVagile
pushed a commit
to SimoneVagile/reporting-engine
that referenced
this issue
Jan 25, 2021
There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.
With ODT py3o reports, thanks to an enhancement made several months ago by @lmignon in report_py3o (cf https://github.com/OCA/reporting-engine/blob/10.0/report_py3o/models/py3o_report.py#L244) and py3o.template, an empty field displayed in the ODT report is not displayed as "False" but as an empty value.
It would be great to have the same in ODS report. Currently, to avoid to display "False" when the email is empty we have to use in the ODS template : ${o.email or ''}
The text was updated successfully, but these errors were encountered: