Commit Graph

76 Commits

Author SHA1 Message Date
OCA-git-bot
cda2cd8a2f [BOT] post-merge updates 2023-10-24 08:51:14 +00:00
josep-tecnativa
554eeae329 [IMP] report_xlsx: test performance improvement
- Switch to setUpClass for avoiding repeat the same setup for each test.
- Include context keys for avoiding mail operations overhead.
2023-10-24 09:43:54 +02:00
Weblate
5936044f7d Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-15.0/reporting-engine-15.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-15-0/reporting-engine-15-0-report_xlsx/
2023-10-10 00:43:35 +00:00
OCA-git-bot
a114b942e8 [UPD] README.rst 2023-09-03 15:59:14 +00:00
Ivorra78
dd20dad53a Translated using Weblate (Spanish)
Currently translated at 100.0% (13 of 13 strings)

Translation: reporting-engine-15.0/reporting-engine-15.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-15-0/reporting-engine-15-0-report_xlsx/es/
2023-07-13 20:08:52 +00:00
OCA-git-bot
2a4c2b9b82 report_xlsx 15.0.1.1.3 2023-04-13 13:46:02 +00:00
Karl Southern
de2ce1f400 [FIX] IndexError thrown when attempting to split url by /report/xlsx when not a xlsx report 2023-04-13 14:41:40 +01:00
OCA-git-bot
2eb2b5d3ae report_xlsx 15.0.1.1.2 2023-04-13 08:41:29 +00:00
Yenthe Van Ginneken
6b810c7fb5 [FIX] report_xlsx: make sure variable is known
Before this commit if another app crashes the "report_xlsx" controller it would go into the exception.
However in the exception the following is called:
_logger.exception("Error while generating report %s", reportname)

As the except clause does not have the "reportname" variable it fails:
Traceback (most recent call last):
  File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
    result = request.dispatch()
  File "/home/odoo/src/odoo/odoo/http.py", line 804, in dispatch
    r = self._call_function(**self.params)
  File "/home/odoo/src/odoo/odoo/http.py", line 359, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/odoo/http.py", line 348, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/odoo/http.py", line 910, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/odoo/http.py", line 535, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/user/report_xlsx/controllers/main.py", line 100, in report_download
    _logger.exception("Error while generating report %s", reportname)
Exception

By putting the "reportname" before the try it will always be available
2023-04-12 21:47:55 +02:00
OCA-git-bot
814c29814f report_xlsx 15.0.1.1.1 2022-09-08 07:23:36 +00:00
Víctor Martínez
359e6b79e5 [IMP] report_xlsx: Method for getting cell format for a currency
TT38722
2022-09-08 08:43:12 +02:00
OCA-git-bot
f83603466a report_xlsx 15.0.1.1.0 2022-08-30 05:29:38 +00:00
Jasmin Solanki
b3cd677421 [FIX] report_xlsx: Fix dynamic report download 2022-06-24 17:24:43 +05:30
pablontura
7c382039b0 Translated using Weblate (Catalan)
Currently translated at 100.0% (8 of 8 strings)

Translation: reporting-engine-15.0/reporting-engine-15.0-report_xlsx
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-15-0/reporting-engine-15-0-report_xlsx/ca/
2022-04-22 13:05:17 +00:00
pablontura
8515553e3c Added translation using Weblate (Catalan) 2022-04-22 10:06:40 +00:00
OCA-git-bot
4752d075ac report_xlsx 15.0.1.0.5 2022-04-13 13:59:42 +00:00
OCA-git-bot
4154518838 [UPD] README.rst 2022-04-13 13:59:42 +00:00
manu
0e01b46404 [FIX]report_xlsx: development status tu mature 2022-04-13 15:27:23 +02:00
OCA-git-bot
ba3104e9b0 report_xlsx 15.0.1.0.4 2022-02-17 15:53:05 +00:00
xavier-bouquiaux
1e3b47c3e7 report_xlsx
refs #586
problem explained in the issue
2022-02-17 12:08:34 +01:00
OCA-git-bot
d8efa83e2d report_xlsx 15.0.1.0.3 2022-01-18 15:31:54 +00:00
Mihran Thalhath
497dd50e7c [FIX] report_xlsx: fix generation of pdf reports
the report handler for xlsx added over here is always returning `true` even if the report being
generated is not xlsx. Due to this, the report handler doesn't check for other report types
at b309d3a99f/addons/web/static/src/webclient/actions/action_service.js (L1019)
and thus doesn't generate any other reports. So if the converter is not xlsx, return false instead of true.

Also, updating the docids and context in the report_routes controller only needs to be done if
the converter is xlsx and not in any other case.
2022-01-18 12:09:34 +05:30
OCA-git-bot
4f70148dd2 report_xlsx 15.0.1.0.1 2021-12-14 12:30:49 +00:00
Jaime Arroyo
cddb81f264 [12.0][FIX] Report xlsx res_partner 2021-12-14 11:37:06 +01:00
oca-ci
50d46ca8c0 [UPD] Update report_xlsx.pot 2021-12-11 11:28:54 +00:00
OCA-git-bot
f8f9f9935d [UPD] README.rst 2021-12-11 11:27:07 +00:00
Christopher Ormaza
bc9203ab0b [FIX] report_xlsx: refactor controller and report hamdler 2021-12-10 11:00:22 +01:00
Joan Mateu Jordi
fee318323e [MIG] report_xlsx: Migration to 15.0 2021-12-10 10:12:17 +01:00
Simon S
8ca53e0bcf Translated using Weblate (Swedish)
Currently translated at 92.3% (12 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/sv/
2021-12-10 10:12:17 +01:00
Simon S
f7ee6aadc2 Added translation using Weblate (Swedish) 2021-12-10 10:12:17 +01:00
OCA-git-bot
20d8c5c4eb report_xlsx 14.0.1.0.4 2021-12-10 10:12:17 +01:00
OCA-git-bot
6ca4aa2ecb [UPD] README.rst 2021-12-10 10:12:17 +01:00
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