Commit Graph

17 Commits

Author SHA1 Message Date
Dario Del Zozzo
bc4c589e19 [MIG] report_xlsx: Migration to 18.0 2024-10-25 15:50:01 +02:00
tien-ld
4776b1d416 [IMP] report_xlsx: pre-commit auto fixes 2024-10-25 13:40:52 +02:00
Víctor Martínez
869f8c3be5 [IMP] report_xlsx: Method for getting cell format for a currency
TT38722
2024-10-25 13:40:52 +02:00
Jaime Arroyo
a76a2f91a9 [12.0][FIX] Report xlsx res_partner 2024-10-25 13:40:52 +02:00
Christopher Ormaza
fd974fad01 [FIX] report_xlsx: refactor controller and report hamdler 2024-10-25 13:40:52 +02:00
david
330aaa1b28 [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
2024-10-25 13:40:52 +02:00
Alex Cuellar
8d4482017b [MIG] report_xlsx: Migration to 14.0 2024-10-25 13:40:52 +02:00
mreficent
24bf529595 [FIX] report_xlsx: rename a file 2024-10-25 13:40:52 +02:00
Rod Schouteden
28a1dda845 [MIG][IMP][13.0] rebase to include new linters 2024-10-25 13:40:52 +02:00
Rod Schouteden
8523d356e3 [MIG] report_xlsx: Migration to 13.0 2024-10-25 13:40:52 +02:00
Cristian Salamea
c6f83dc388 [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
2024-10-25 13:40:52 +02:00
Graeme Gellatly
5dc1e6ce61 Fix report_xlsx for printing from wizards 2024-10-25 13:40:52 +02:00
Enric Tobella
c5fe71d662 [MIG] report_xlsx: Migration to 11.0 2024-10-25 13:40:52 +02:00
Stéphane Bidoul (ACSONE)
7893a2049a [10.0] report_xlsx: Allow to define options for workbook creation (#98)
* Allow to define options for workbook creation
2024-10-25 13:40:52 +02:00
Adrien Peiffer (ACSONE)
7bfe1c883b [MIG] Migration of report_xlsx to 10.0 (#76) 2024-10-25 13:40:52 +02:00
sebalix
d6e1f320d6 [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 2024-10-25 13:40:52 +02:00
Adrien Peiffer (ACSONE)
f36ae30aa1 [CHG] Rename base_report_xlsx to report_xlsx and add xlsx report type in selection 2024-10-25 13:40:52 +02:00