Odoo Alternative Reporting Engine
 
 
 
 
Go to file
david a9e7c0396b [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-12-10 10:12:17 +01:00
.github/workflows [IMP] update dotfiles [ci skip] 2021-11-10 22:29:48 +01:00
report_xlsx [IMP][FIX] report_xlsx: handle duplicate name exceptions 2021-12-10 10:12:17 +01:00
setup [ADD] setup.py 2021-12-09 15:10:00 +00:00
sql_request_abstract [UPD] README.rst 2021-12-09 15:10:00 +00:00
.copier-answers.yml [IMP] update dotfiles [ci skip] 2021-11-10 22:29:48 +01:00
.editorconfig Initialize 15.0 branch 2021-10-17 17:03:53 +02:00
.eslintrc.yml [IMP] update dotfiles [ci skip] 2021-11-10 22:29:48 +01:00
.flake8 Initialize 15.0 branch 2021-10-17 17:03:53 +02:00
.gitignore Initialize 15.0 branch 2021-10-17 17:03:53 +02:00
.isort.cfg Initialize 15.0 branch 2021-10-17 17:03:53 +02:00
.pre-commit-config.yaml [IMP] update dotfiles [ci skip] 2021-10-18 22:03:35 +02:00
.prettierrc.yml Initialize 15.0 branch 2021-10-17 17:03:53 +02:00
.pylintrc Initialize 15.0 branch 2021-10-17 17:03:53 +02:00
.pylintrc-mandatory Initialize 15.0 branch 2021-10-17 17:03:53 +02:00
.t2d.yml Initialize 15.0 branch 2021-10-17 17:03:53 +02:00
LICENSE Initialize 15.0 branch 2021-10-17 17:03:53 +02:00
README.md [UPD] addons table in README.md 2021-12-09 15:09:59 +00:00

README.md

Runbot Status Build Status codecov Translation Status

reporting-engine

TODO: add repo description.

Available addons

addon version maintainers summary
sql_request_abstract 15.0.1.0.0 legalsylvain Abstract Model to manage SQL Requests

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.