Commit Graph

45 Commits

Author SHA1 Message Date
OCA-git-bot
6339554227 [UPD] README.rst 2021-11-08 12:57:59 +00:00
Eugene Molotov
19638e889c [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-11-08 16:45:56 +05:00
OCA-git-bot
437a6eaca4 report_xlsx 14.0.1.0.3 2021-09-20 11:42:44 +00:00
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
Pedro Castro Silva
a30062fae2 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-07-02 23:48:56 +00:00
OCA-git-bot
ce3bb87d64 report_xlsx 14.0.1.0.2 2021-06-02 14:25:30 +00:00
OCA-git-bot
e2d7fd48fc [UPD] README.rst 2021-06-02 14:25:30 +00:00
Stéphane Bidoul
2a878b44cc report_xlsx: bump development status [ci skip] 2021-06-02 15:56:00 +02:00
Ana Suárez
919aec2f2e 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-03-16 12:45:50 +00:00
OCA-git-bot
ed0aeca577 report_xlsx 14.0.1.0.1 2021-01-13 12:31:37 +00:00
Saran440
69efe5059a [FIX] safe_eval object time 2021-01-07 21:24:18 +07:00
OCA-git-bot
d923626303 [UPD] README.rst 2020-11-25 18:14:48 +00:00
oca-travis
ed1ca9b631 [UPD] Update report_xlsx.pot 2020-11-25 18:09:53 +00:00
Alex Cuellar
5231d53a21 [MIG] report_xlsx: Migration to 14.0 2020-11-04 08:32:26 -05:00
Alex Cuellar
155d1e07cd [IMP] : black, isort, prettier 2020-11-04 07:39:44 -05:00
OCA Transbot
66b29685fe 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/
2020-11-04 07:39:44 -05:00
OCA-git-bot
60217cd465 report_xlsx 13.0.1.0.1 2020-11-04 07:39:44 -05:00
OCA-git-bot
da836c1ca3 pre-commit update 2020-11-04 07:39:44 -05:00
mreficent
73ecc2b53f [FIX] report_xlsx: rename a file 2020-11-04 07:39:44 -05:00
OCA Transbot
295bdd0e55 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/
2020-11-04 07:39:44 -05:00
OCA-git-bot
b3ed3e657a [UPD] README.rst 2020-11-04 07:39:44 -05:00
oca-travis
c35fc4f282 [UPD] Update report_xlsx.pot 2020-11-04 07:39:44 -05:00
Joan Sisquella
b6adb724e9 [FIX] report_xlsx: js 2020-11-04 07:39:44 -05:00
Rod Schouteden
7d48d9a247 [MIG][IMP][13.0] rebase to include new linters 2020-11-04 07:39:44 -05:00
Rod Schouteden
adb71709e1 [MIG] report_xlsx: Migration to 13.0 2020-11-04 07:39:44 -05:00
OCA-git-bot
bfc46ffcb8 report_xlsx 12.0.1.0.1 2020-11-04 07:39:44 -05:00
Pedro Castro Silva
3b823c50e9 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/
2020-11-04 07:39:43 -05:00
Pedro Castro Silva
0fbcfd1f8e Added translation using Weblate (Portuguese) 2020-11-04 07:39:43 -05:00
Kitti U
a10b61d9d9 [12.0][IMP] report_xlsx, make sure print_report_name works 2020-11-04 07:39:43 -05:00
OCA-git-bot
a02de2cff0 [UPD] README.rst 2020-11-04 07:39:43 -05:00
Rudolf Schnapka
5b46b2c3c7 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/
2020-11-04 07:39:43 -05:00
OCA Transbot
8290edf9a6 Update translation files
Updated by Update PO files to match POT (msgmerge) hook in Weblate.
2020-11-04 07:39:43 -05:00
oca-travis
3ef5caa803 [UPD] Update report_xlsx.pot 2020-11-04 07:39:43 -05:00
Pedro M. Baeza
40401b4c96 [IMP] report_xlsx: README by fragments 2020-11-04 07:39:43 -05:00
Cristian Salamea
25de0a3d7f [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
2020-11-04 07:39:43 -05:00
Graeme Gellatly
fcc3c36c56 Fix report_xlsx for printing from wizards 2020-11-04 07:39:43 -05:00
oca-travis
498fd57c87 [UPD] Update report_xlsx.pot 2020-11-04 07:39:43 -05:00
Naglis Jonaitis
e499c3ceec [IMP] report_fillpdf, report_xlsx, report_xml: Use content_disposition helper 2020-11-04 07:39:43 -05:00
OCA Transbot
b10a09948d OCA Transbot updated translations from Transifex 2020-11-04 07:39:43 -05:00
Enric Tobella
a2ca54c6a4 [MIG] report_xlsx: Migration to 11.0 2020-11-04 07:39:43 -05:00
OCA Transbot
c3c9d9ae7c OCA Transbot updated translations from Transifex 2020-11-04 07:39:43 -05:00
Stéphane Bidoul (ACSONE)
bed10964e6 [10.0] report_xlsx: Allow to define options for workbook creation (#98)
* Allow to define options for workbook creation
2020-11-04 07:39:43 -05:00
Adrien Peiffer (ACSONE)
df8d887011 [MIG] Migration of report_xlsx to 10.0 (#76) 2020-11-04 07:39:43 -05:00
sebalix
9ac774c2e9 [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 2020-11-04 07:39:43 -05:00
Adrien Peiffer (ACSONE)
b0ecea8464 [CHG] Rename base_report_xlsx to report_xlsx and add xlsx report type in selection 2020-11-04 07:39:43 -05:00