Laurent Mignon (ACSONE)
b5706db629
[FIX] report_py3o: Access to ir.config_parameter with sudo
2019-02-05 18:22:15 +01:00
Laurent Mignon (ACSONE)
90f0a66532
[IMP] py3o_report: Allow to specify the lang when calling o_format_lang
...
lang_code is already supported by o_format_date
2019-02-01 18:05:04 +01:00
Laurent Mignon (ACSONE)
762c52118f
[FIX] report_py3o: Add missing 'user' and 'lang' into the parser context
2019-02-01 16:10:12 +01:00
Laurent Mignon (ACSONE)
876aa27ef2
[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.
2019-02-01 16:07:29 +01:00
Laurent Mignon (ACSONE)
213895ed0c
[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
2019-01-31 18:03:30 +01:00
Laurent Mignon (ACSONE)
b81219abd3
[IMP] report_py3o: remove obsolete methods
2019-01-08 10:53:36 +01:00
Laurent Mignon (ACSONE)
6aa8f4aa5a
[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
2019-01-08 10:12:26 +01:00
Gilles Meyomesse
74f58a3423
[12.0][MIG] improvement py3o_report_extender
2018-11-30 11:41:45 +01:00
Laurent Mignon (ACSONE)
dce59162ce
[MIG] report_py3o, report_py3o_fusion_server: Migration to 12.0
2018-11-26 17:58:30 +01:00
Holger Brunn
efab84502c
[IMP] check for template data, not for the id
2018-11-23 17:29:00 +01:00
jesusVMayor
22d6113c05
[FIX]report_py3o: Escape correctly html characters.
2018-11-23 17:29:00 +01:00
Holger Brunn
208148d79e
[FIX] fallback to libreoffice conversion when no server is configured
...
fixes #200
2018-11-23 17:29:00 +01:00
Holger Brunn
ae65d78882
[RFR] split off the fusion server to its own module
...
use libreoffice for conversions in the base version. Fixes #179
2018-11-23 17:29:00 +01:00
Omar
9c3da02bdb
[FIX] report_py3o: Import new dependencies in try...except
2018-11-23 17:29:00 +01:00
Omar
780cef9898
[FIX] report_py3o: Removes api.one
2018-11-23 17:29:00 +01:00
omar7r
3850a62d75
[FIX] Deletes an unnecessary function call
2018-11-23 17:29:00 +01:00
Omar
838f94e3fc
[IMP] report_py3o: Allows to interpret \n and \t in texts, cleans html tags too
2018-11-23 17:29:00 +01:00
Laurent Mignon
0fbd3538f9
[IMP] report_py3o: Take into account print_report_name
...
If a Printed Report Name is set on the action report, use it as
downloaded filename
refs #133
2018-11-23 17:29:00 +01:00
Laurent Mignon (ACSONE)
860439b743
[FIX] report_py3o: must return the path to the report
...
refs #119
2018-11-23 17:29:00 +01:00
Alexis de Lattre
5173ca28c3
Add option py3o_multi_in_one for Py3o reports
2018-11-23 17:27:19 +01:00
Guewen Baconnier
97fa71333f
Pass option for escaping False values to server
...
Needs https://bitbucket.org/faide/py3o.fusion/pull-requests/1
2018-11-23 17:27:19 +01:00
Guewen Baconnier
00ee152021
Fix py3o freeze when using server fusion
...
The template file has been partially read for the parsing of the
expressions, so use the original template data instead. When the fusion
server receives an incomplete template, we don't receive any answer
back.
2018-11-23 17:27:19 +01:00
Laurent Mignon (ACSONE)
65dd610068
[IMP] report_py3o: prevent injections when retrieving the template from path
2018-11-23 17:27:19 +01:00
Alexis de Lattre
ca8de29893
[FIX] delete PDF invoice attachment on invoice back to draft (native feature now working with py3o)
2018-11-23 17:27:19 +01:00
Laurent Mignon (ACSONE)
e5861a78de
[FIX] report_py3o: fix exception when report must be saved as attachement
...
The mehtod must be called with a list of ids not with a list of browse records
2018-11-23 17:27:19 +01:00
Laurent Mignon (ACSONE)
bc35d438fd
[IMP] Allow to override/extend the way we get the fallback template
2018-11-23 17:27:19 +01:00
Jonathan Nemry (ACSONE)
1e930adfd2
* travis.yml
...
* flake8
2018-11-23 17:27:19 +01:00
Laurent Mignon
63167880c8
[IMP] Minimizes memory consumption
...
Conflicts:
report_py3o/models/py3o_report.py
2018-11-23 17:27:19 +01:00
Jonathan Nemry (ACSONE)
55bcc1e5df
[FIX] imports
2018-11-23 17:27:19 +01:00
Laurent Mignon
e542ea7ba5
[IMP] Replace old style parser by TransientModel
...
The goal is to improve the modularity by making the parser a true inheritable odoo model and share part of the code with the 'report' model
Conflicts:
report_py3o/models/ir_actions_report_xml.py
report_py3o/models/py3o_report.py
report_py3o/tests/test_report_py3o.py
2018-11-23 17:27:19 +01:00
Alexis de Lattre
1ca273efa8
PEP8 fix
2018-11-23 17:27:19 +01:00
Alexis de Lattre
60fa7324cf
Port report_py3o to Odoo v10
2018-11-23 17:27:19 +01:00
Laurent Mignon (ACSONE)
e3986ad538
[FIX] Check constrains only if report_type == 'py3o'
2018-11-23 17:27:19 +01:00
Laurent Mignon
211fec175b
Add more tests and fixes issues found by tests
2018-11-23 17:27:19 +01:00
Laurent Mignon
ef3461e87a
rename module ir_report to ir_actions_report_xml
2018-11-23 17:27:19 +01:00
Laurent Mignon
9f6a0bd730
Replace plain SQL by orm
2018-11-23 17:27:19 +01:00
Alexis de Lattre
ceea7bf493
Take into accounts most remarks of @lasley
...
Remove <data> in views
Protect import of py3o libs
Remove dep on base module
Other small changes
2018-11-23 17:27:19 +01:00
Alexis de Lattre
b6faa590b2
Small usability improvements
...
Replace README.md by README.rst (not finished)
2018-11-23 17:27:19 +01:00
Laurent Mignon
0a8c0b67c6
Add simple tests and fix call to fusion server
2018-11-23 17:27:19 +01:00
Florent AIDE
e40e810485
fixed missing comma in model definition
2018-11-23 17:27:19 +01:00
Laurent Mignon
8360106cfe
Improve filetype selection name
2018-11-23 17:27:19 +01:00
Laurent Mignon
744fb50808
[IMP] Allow user to use local fusion
2018-11-23 17:27:19 +01:00
Laurent Mignon
92a1cde5b5
[IMP] Add the possiblity to get the template from an absolute path on the server
2018-11-23 17:27:19 +01:00
Laurent Mignon
eac6184104
Remove unicode string
2018-11-23 17:27:19 +01:00
Laurent Mignon
32062c987e
[IMP] New API + Short Hearder
2018-11-23 17:27:19 +01:00
Laurent Mignon
351badcd48
Move to report_py3o after import from HG
2018-11-23 17:27:19 +01:00