fix : Auto email report fix for XLSX and CSV format (#6729)

This commit is contained in:
Deepesh Garg 2019-01-08 14:09:11 +05:30 committed by Nabin Hait
parent c274882fd0
commit 900392efa3

View file

@ -1,7 +1,11 @@
{% macro get_alignment(col) %}
{%- if col.fieldtype in ('Int', 'Float', 'Currency', 'Check') %} class="text-right" {% endif -%}
{% endmacro %}
{% set max_width = '100%' if columns|length > 3 else '600px' %}
{% if columns %}
{% set max_width = '100%' if columns|length > 3 else '600px' %}
{% else %}
{% set max_width = '600px' %}
{% endif %}
<table class="report-title" border="0" cellpadding="0" cellspacing="0" width="100%" style="max-width: {{ max_width }}">
<tr>
<td>