Commit Graph

12 Commits

Author SHA1 Message Date
Denis Leemann
dcfd5c1ec4 run pre-commit 2021-11-23 15:56:02 +01: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
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
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)
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)
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
Laurent Mignon (ACSONE)
e65b6db22f [MIG] report_py3o, report_py3o_fusion_server: Migration to 12.0 2020-10-21 19:13:32 +03:00