Commit Graph

104 Commits (e1aa558895cc09436c340d4c08edd2b30986addc)

Author SHA1 Message Date
Eugene Molotov e1aa558895 [FIX] report_xlsx: correctly handle exceptions, when generating report
Before this commit, when exception is raised while generating report,
on browser window instead of python traceback nothing was shown
on production environment or werkzeug's "Console locked" message
on development environment.
2021-12-10 10:12:17 +01:00
OCA-git-bot 916ec9b71c report_xlsx 14.0.1.0.3 2021-12-10 10:12:17 +01:00
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
Pedro Castro Silva 41307ebdb4 Translated using Weblate (Portuguese)
Currently translated at 100.0% (13 of 13 strings)

Translation: reporting-engine-14.0/reporting-engine-14.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-14-0/reporting-engine-14-0-report_xlsx/pt/
2021-12-10 10:12:17 +01:00
OCA-git-bot f7f6dd172c report_xlsx 14.0.1.0.2 2021-12-10 10:12:17 +01:00
OCA-git-bot 6e02bbd582 [UPD] README.rst 2021-12-10 10:12:17 +01:00
Stéphane Bidoul 65645f64b2 report_xlsx: bump development status [ci skip] 2021-12-10 10:12:17 +01:00
Ana Suárez 53af3e0111 Translated using Weblate (Spanish)
Currently translated at 84.6% (11 of 13 strings)

Translation: reporting-engine-14.0/reporting-engine-14.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-14-0/reporting-engine-14-0-report_xlsx/es/
2021-12-10 10:12:17 +01:00
OCA-git-bot cb937cf99b report_xlsx 14.0.1.0.1 2021-12-10 10:12:17 +01:00
Saran440 63beeed36c [FIX] safe_eval object time 2021-12-10 10:12:17 +01:00
OCA-git-bot 73dba2e92a [UPD] README.rst 2021-12-10 10:12:17 +01:00
oca-travis cb18daa532 [UPD] Update report_xlsx.pot 2021-12-10 10:12:17 +01:00
Alex Cuellar df75d408ae [MIG] report_xlsx: Migration to 14.0 2021-12-10 10:12:17 +01:00
Alex Cuellar 161165cd32 [IMP] : black, isort, prettier 2021-12-10 10:12:17 +01:00
OCA Transbot c0f8e5d9c3 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-13.0/reporting-engine-13.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-report_xlsx/
2021-12-10 10:12:17 +01:00
OCA-git-bot 8e6ad068da report_xlsx 13.0.1.0.1 2021-12-10 10:12:17 +01:00
OCA-git-bot 298a6f0600 pre-commit update 2021-12-10 10:12:17 +01:00
mreficent 82b42d9406 [FIX] report_xlsx: rename a file 2021-12-10 10:12:17 +01:00
OCA Transbot 58a1ddaa87 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-13.0/reporting-engine-13.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-report_xlsx/
2021-12-10 10:12:17 +01:00
OCA-git-bot 100de6759f [UPD] README.rst 2021-12-10 10:12:17 +01:00
oca-travis 71051a1388 [UPD] Update report_xlsx.pot 2021-12-10 10:12:17 +01:00
Joan Sisquella 1ecde4ea83 [FIX] report_xlsx: js 2021-12-10 10:12:17 +01:00
Rod Schouteden 67ecf5c597 [MIG][IMP][13.0] rebase to include new linters 2021-12-10 10:12:17 +01:00
Rod Schouteden 70ad9aff1f [MIG] report_xlsx: Migration to 13.0 2021-12-10 10:12:17 +01:00
OCA-git-bot d69546f740 report_xlsx 12.0.1.0.1 2021-12-10 10:12:17 +01:00
Pedro Castro Silva 70b7f3d11d Translated using Weblate (Portuguese)
Currently translated at 94.4% (17 of 18 strings)

Translation: reporting-engine-12.0/reporting-engine-12.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_xlsx/pt/
2021-12-10 10:12:17 +01:00
Pedro Castro Silva efbb643080 Added translation using Weblate (Portuguese) 2021-12-10 10:12:17 +01:00
Kitti U b8d7bf50d6 [12.0][IMP] report_xlsx, make sure print_report_name works 2021-12-10 10:12:17 +01:00
OCA-git-bot 34abd0a42b [UPD] README.rst 2021-12-10 10:12:17 +01:00
Rudolf Schnapka e00edf7520 Translated using Weblate (German)
Currently translated at 88.2% (15 of 17 strings)

Translation: reporting-engine-12.0/reporting-engine-12.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_xlsx/de/
2021-12-10 10:12:17 +01:00
OCA Transbot 39eef0c4e5 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2021-12-10 10:12:17 +01:00
oca-travis 2cc2847340 [UPD] Update report_xlsx.pot 2021-12-10 10:12:17 +01:00
Pedro M. Baeza 5d1f93b64a [IMP] report_xlsx: README by fragments 2021-12-10 10:12:17 +01:00
Cristian Salamea 98379af2bf [MIG] report_xlsx: Migration to 12.0
* refactor: On new ActionManager override _makeReportUrls and triggerDownload to support XLSX format
* pass action to custom _downloadReportXLSX: Need action to get report data
* dict constructor to remove context lang
2021-12-10 10:12:17 +01:00
Graeme Gellatly 2842f2ad08 Fix report_xlsx for printing from wizards 2021-12-10 10:12:17 +01:00
oca-travis 9387e8808d [UPD] Update report_xlsx.pot 2021-12-10 10:12:17 +01:00
Naglis Jonaitis 31825cafad [IMP] report_fillpdf, report_xlsx, report_xml: Use content_disposition helper 2021-12-10 10:12:17 +01:00
OCA Transbot 5f4a5b45df OCA Transbot updated translations from Transifex 2021-12-10 10:12:17 +01:00
Enric Tobella f0455b7bf2 [MIG] report_xlsx: Migration to 11.0 2021-12-10 10:12:17 +01:00
OCA Transbot 6896c73280 OCA Transbot updated translations from Transifex 2021-12-10 10:12:17 +01:00
Stéphane Bidoul (ACSONE) b920fad77b [10.0] report_xlsx: Allow to define options for workbook creation (#98)
* Allow to define options for workbook creation
2021-12-10 10:12:17 +01:00
Adrien Peiffer (ACSONE) 90729b2a09 [MIG] Migration of report_xlsx to 10.0 (#76) 2021-12-10 10:12:17 +01:00
sebalix 351e5586f1 [IMP] report_xlsx - Pass the report instance as well as ids of records to print to the 'create_xlsx_report' method + Instanciate the parser and make it available for the 'generate_xlsx_report' method 2021-12-10 10:12:17 +01:00
Adrien Peiffer (ACSONE) 69536c2722 [CHG] Rename base_report_xlsx to report_xlsx and add xlsx report type in selection 2021-12-10 10:12:17 +01:00
OCA-git-bot 49c7c7b7cc [ADD] setup.py 2021-12-09 15:10:00 +00:00
OCA-git-bot 434ae11716 [UPD] README.rst 2021-12-09 15:10:00 +00:00
OCA-git-bot d4d705c3c9 [UPD] addons table in README.md 2021-12-09 15:09:59 +00:00
oca-ci b14a3c2eb2 [UPD] Update sql_request_abstract.pot 2021-12-09 15:08:07 +00:00
OCA-git-bot 7b78f3df14 Merge PR #552 into 15.0
Signed-off-by LoisRForgeFlow
2021-12-09 15:06:29 +00:00
mariadforgeflow e495e071d6 [MIG] sql_request_abstract: Migration to 15.0 2021-12-02 13:17:19 +01:00