david 842137a473 [IMP][FIX] report_xlsx: handle duplicate name exceptions
We want to avoid duplicated sheet names exceptions the same following the same
philosophy that Odoo implements overriding the main library to avoid the 31
characters limit triming the strings before sending them to the library.

In some cases, there's not much control over this as the reports send automated
data and the potential exception is hidden underneath making it hard to debug
the original issue. Even so, different names can become the same one as their
strings are trimmed to those 31 character limit.

This way, once we come across with a duplicated, we set that final 3 characters
with a sequence that we evaluate on the fly. So for instance:

- 'Sheet name' will be 'Sheet name~01'
- The next 'Sheet name' will try to rename to 'Sheet name~01' as well and then
  that will give us 'Sheet name~02'.
- And the next 'Sheet name' will try to rename to 'Sheet name~01' and then to
  'Sheet name~02' and finally it will be able to 'Sheet name~03'.
- An so on as many times as duplicated sheet names come to the workbook up to
  100 for each sheet name. We set such limit as we don't want to truncate the
  strings too much and keeping in mind that this issue don't usually ocurrs.

TT31938
2021-09-20 11:15:40 +02:00
2021-06-11 17:29:12 +00:00
2021-04-21 08:48:02 +00:00
2021-04-20 16:39:36 +00:00
2021-05-26 10:28:36 +00:00
2021-05-01 19:22:24 +00:00
2021-06-09 17:44:49 +00:00
2021-07-29 20:12:30 +00:00
2020-10-08 21:45:28 +02:00
2020-10-08 21:45:28 +02:00
2021-05-14 18:27:27 +02:00
2020-10-08 21:45:28 +02:00
2021-05-14 18:27:27 +02:00
2020-11-01 22:26:19 +01:00
2021-04-21 08:39:14 +00:00
2020-10-08 21:45:28 +02:00
2020-10-08 21:45:28 +02:00
2021-08-14 04:32:51 +00:00

Runbot Status Build Status codecov Translation Status

reporting-engine

TODO: add repo description.

Available addons

addon version maintainers summary
base_comment_template 14.0.2.0.1 Add conditional mako template to any reporton models that inherits comment.template.
bi_sql_editor 14.0.1.0.0 BI Views builder, based on Materialized or Normal SQL Views
bi_view_editor 14.0.1.0.0 Graphical BI views builder for Odoo
kpi_dashboard 14.0.1.0.0 etobella Create Dashboards using kpis
report_qweb_element_page_visibility 14.0.1.0.0 Report Qweb Element Page Visibility
report_qweb_encrypt 14.0.1.0.0 kittiu Allow to encrypt qweb pdfs
report_qweb_parameter 14.0.1.0.0 Add new parameters for qweb templates in order to reduce field length and check minimal length
report_qweb_pdf_watermark 14.0.1.0.0 Add watermarks to your QWEB PDF reports
report_wkhtmltopdf_param 14.0.1.0.0 Add new parameters for a paper format to be used by wkhtmltopdf command as arguments.
report_xlsx 14.0.1.0.2 Base module to create xlsx report
report_xlsx_helper 14.0.1.0.0 Report xlsx helpers
report_xlsx_helper_demo 14.0.1.0.0 Report xlsx helpers - demo
report_xml 14.0.1.0.1 Allow to generate XML reports

Licenses

This repository is licensed under AGPL-3.0.

However, each module can have a totally different license, as long as they adhere to OCA policy. Consult each module's __manifest__.py file, which contains a license key that explains its license.


OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.

Description
Odoo Alternative Reporting Engine
Readme 443 MiB
Languages
Python 35.1%
HTML 31.9%
JavaScript 30.5%
Java 1.1%
CSS 1.1%
Other 0.3%