Commit Graph

110 Commits (00cf5042067a0bd44fcf04d02dfa01c3e9e5362d)

Author SHA1 Message Date
OCA-git-bot e070842aff [UPD] README.rst 2021-12-09 09:35:16 +00:00
oca-travis b256d6f6e4 [UPD] Update report_py3o.pot 2021-12-09 09:30:26 +00:00
Denis Leemann dcfd5c1ec4 run pre-commit 2021-11-23 15:56:02 +01:00
Elmeri Niemelä 0ddf462e04
[IMP] Remove except of IOError as its an alias to OSError in python3
Co-authored-by: Nils Hamerlinck <nilshamerlinck@users.noreply.github.com>
2021-11-07 14:03:59 +02:00
Elmeri Niemelä 6760507d72
[IMP] Cleanup unnecessary imports
Co-authored-by: Nils Hamerlinck <nilshamerlinck@users.noreply.github.com>
2021-11-07 14:01:44 +02:00
Elmeri Niemelä 779da4f952
[IMP] Workaround for genshi DeprecationWarning that makes runbot build red
Co-authored-by: Nils Hamerlinck <nilshamerlinck@users.noreply.github.com>
2021-11-07 14:00:56 +02:00
Elmeri Niemelä 08deb1e931 [IMP] Add ability to include properly formatted datetime field in a report displaying date and time 2021-11-05 17:06:57 +02:00
Elmeri Niemelä c2db522568 [MIG] Use safe_eval wrapped time module. Fix deprecation warnings.
Co-authored-by: Alexis de Lattre <alexis.delattre@akretion.com>
2021-02-02 08:20:17 +02:00
Elmeri Niemelä ec4a6ad6ec
Update report_py3o/models/ir_actions_report.py
In v 14.0 time module is already in safe_eval https://github.com/odoo/odoo/blob/14.0/odoo/tools/safe_eval.py#L38

Co-authored-by: mourad-ehm <mourad.elhadj.mimoune@akretion.com>
2020-11-07 16:44:14 +02:00
Elmeri Niemelä bee9ce47be [14.0][MIG] report_py3o: Migration to 14.0 2020-10-21 19:17:39 +03:00
OCA Transbot 670f42c353 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_py3o
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-report_py3o/
2020-10-21 19:13:33 +03:00
OCA Transbot fe67f94b55 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_py3o
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-13-0/reporting-engine-13-0-report_py3o/
2020-10-21 19:13:33 +03:00
OCA-git-bot 932653e668 [UPD] README.rst 2020-10-21 19:13:33 +03:00
oca-travis b118c84a34 [UPD] Update report_py3o.pot 2020-10-21 19:13:33 +03:00
Stéphane Bidoul 5beeabef02 [FIX] make prettier happy 2020-10-21 19:13:33 +03:00
Laurent Mignon (ACSONE) 28897159f2 [FIX] report_py3o: prettier xml after merge with master 2020-10-21 19:13:33 +03:00
sbejaoui 16cf7466b9 [12.0][FIX] - report_py3o: run libreoffice in an isolated user installation
Bug when more than one conversion print is launched within the same libreoffice instance.

The standard behavior of libreoffice when a user open it while another instance is
running is to show a new window and throw an error if a new instance is forced within
the same user installation [see](https://bugs.documentfoundation.org/show_bug.cgi?id=37531).

This implies a bug in report_py3o module when we call libreoffice at the same time for
different documents.

To reproduce this bug:

**Case 1:**
1.  Simultaneously print two documents.

**Case 2:**
1.  Run print jobs using job_queue module
2.  Manually print another document

**Case 3:**
2.  Open libreoffice
3.  Print a py3o report

This PR creates a temporary user installation for each libreoffice conversion to bypass this limitation.
2020-10-21 19:13:33 +03:00
Russell Briggs 716364437b Make sure value is always set for computed fields
(without these a CacheMiss error is thrown by odoo)
2020-10-21 19:13:33 +03:00
Laurent Mignon (ACSONE) 3fa05b0604 [MIG] report_py3o, report_py3o_fusion_server: Migration to 13.0 2020-10-21 19:13:33 +03:00
Laurent Mignon (ACSONE) 0bf0160d2d [IMP] report_py3o, report_py3o_fusion_server: black, isort 2020-10-21 19:13:33 +03:00
OCA-git-bot 1370625b24 [UPD] README.rst 2020-10-21 19:13:33 +03:00
Stéphane Bidoul (ACSONE) 8ca7cbef85 [FIX] report_py3o readme structure 2020-10-21 19:13:33 +03:00
Alexis de Lattre 3f0d623890 Update README for report_py3o and report_py3o_fusion_server (#306)
* Update README for report_py3o and report_py3o_fusion_server

Convert README to the new readme subdirectory
2020-10-21 19:13:33 +03:00
OCA Transbot 181f4f351c Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-12.0/reporting-engine-12.0-report_py3o
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_py3o/
2020-10-21 19:13:33 +03:00
oca-travis a90f57aeec [UPD] Update report_py3o.pot 2020-10-21 19:13:33 +03:00
OCA Transbot 3289c27cb9 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: reporting-engine-12.0/reporting-engine-12.0-report_py3o
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-12-0/reporting-engine-12-0-report_py3o/
2020-10-21 19:13:33 +03:00
oca-travis fe0e581a12 [UPD] Update report_py3o.pot 2020-10-21 19:13:33 +03:00
Laurent Mignon (ACSONE) ac6fc4eaaf [FIX] report_py3o: Access to ir.config_parameter with sudo 2020-10-21 19:13:33 +03:00
Laurent Mignon (ACSONE) e5e6e9d379 [IMP] py3o_report: Allow to specify the lang when calling o_format_lang
lang_code is already supported by o_format_date
2020-10-21 19:13:33 +03:00
Laurent Mignon (ACSONE) 4d0f2585d3 [FIX] report_py3o: Add missing 'user' and 'lang' into the parser context 2020-10-21 19:13:33 +03:00
Laurent Mignon (ACSONE) 6f6cf5688b [IMP][FIX] py3o_report, py3o_report_fusion_server: Compute the availability of py3o report
Before this change it was not possible to install modules declaring py3o report into a non native format without specifying a Fusion server once the module py3o_report_fusion_server was installed. With theses changes, we now take care of the availability of the libreoffice runtime to display/log a warning message when the report is in a non native runtime.
2020-10-21 19:13:33 +03:00
Laurent Mignon (ACSONE) ac6e75c7b4 [FIX] report_py3o: Add missing method _merge_pdf.
This method was previously provided by Odoo and is used to merge all the reports generated if the generation is called for more than one record
2020-10-21 19:13:33 +03:00
Laurent Mignon (ACSONE) 5f9dfab722 [IMP] report_py3o: Document new methods available into the parser context 2020-10-21 19:13:33 +03:00
Laurent Mignon (ACSONE) bb36779e88 [IMP] report_py3o: remove obsolete methods 2020-10-21 19:13:33 +03:00
Laurent Mignon (ACSONE) 138a994b81 [FIX] report_py3o: Use the right naming convention for the render method
To determine the method to use to render a recport according to its type, the generic method 'render' defined into ir.action.report check if a method name  is defined on the model. https://github.com/odoo/odoo/blob/12.0/odoo/addons/base/models/ir_actions_report.py#L734
Therefore, we must provide this method to be compliant with what's expected by Odoo.
This change will also allows the usage of py3o template with mail_template once https://github.com/odoo/odoo/pull/30013 will be merged
2020-10-21 19:13:33 +03:00
sbejaoui 07dedd08ac Update i18n 2020-10-21 19:13:32 +03:00
Gilles Meyomesse 71a532f21b [12.0][MIG] improvement py3o_report_extender 2020-10-21 19:13:32 +03:00
Laurent Mignon (ACSONE) f2fd2f6632 [IMP] report_py2o: cleanup js 2020-10-21 19:13:32 +03:00
Laurent Mignon (ACSONE) e65b6db22f [MIG] report_py3o, report_py3o_fusion_server: Migration to 12.0 2020-10-21 19:13:32 +03:00
Christophe CHAUVET 80d8afb408 Translated using Weblate (Français)
Currently translated at 100,0% (38 of 38 strings)

Translation: reporting-engine-10.0/reporting-engine-10.0-report_py3o
Translate-URL: https://translation.odoo-community.org/projects/reporting-engine-10-0/reporting-engine-10-0-report_py3o/fr/
2020-10-21 19:13:32 +03:00
oca-travis 1db63ea32f [UPD] Update report_py3o.pot 2020-10-21 19:13:32 +03:00
Alexis de Lattre 4d0d457aff report_py3o_fusion_server: Add support for PDF Export options of libreoffice 2020-10-21 19:13:32 +03:00
Stéphane Bidoul (ACSONE) 359463adfe report_py3o: mention formatLang in README 2020-10-21 19:13:32 +03:00
Simone Rubino d8217989d0 [FIX] If this is not a py3o report, do nothing at all. In some cases the UI remains blocked otherwise 2020-10-21 19:13:32 +03:00
Holger Brunn cb40a8e9ff [IMP] check for template data, not for the id 2020-10-21 19:13:32 +03:00
jesusVMayor a89aa2a2f9 [FIX]report_py3o: Escape correctly html characters. 2020-10-21 19:13:32 +03:00
Pedro M. Baeza f0e3256812 [FIX] report_py3o: Bump version number 2020-10-21 19:13:32 +03:00
Holger Brunn ecaa783529 [FIX] fallback to libreoffice conversion when no server is configured
fixes #200
2020-10-21 19:13:32 +03:00
OCA Transbot 93acd0a666 OCA Transbot updated translations from Transifex 2020-10-21 19:13:32 +03:00
Holger Brunn a88ed813a0 [ADD] migration script to install report_py3o_fusion_server on upgrades 2020-10-21 19:13:32 +03:00