Commit Graph

37 Commits

Author SHA1 Message Date
Holger Brunn
d4707c5313 [IMP] check for template data, not for the id 2019-11-19 14:23:48 +01:00
jesusVMayor
9ed8257f31 [FIX]report_py3o: Escape correctly html characters. 2019-11-19 14:23:48 +01:00
Holger Brunn
095f710517 [FIX] fallback to libreoffice conversion when no server is configured
fixes #200
2019-11-19 14:23:48 +01:00
Holger Brunn
a6d23298b2 [RFR] split off the fusion server to its own module
use libreoffice for conversions in the base version. Fixes #179
2019-11-19 14:23:48 +01:00
Omar
f66bbd6275 [FIX] report_py3o: Import new dependencies in try...except 2019-11-19 14:23:48 +01:00
Omar
5708c1b165 [FIX] report_py3o: Removes api.one 2019-11-19 14:23:48 +01:00
omar7r
604e11fb14 [FIX] Deletes an unnecessary function call 2019-11-19 14:23:48 +01:00
Omar
0cb4dcc777 [IMP] report_py3o: Allows to interpret \n and \t in texts, cleans html tags too 2019-11-19 14:23:48 +01:00
Laurent Mignon
16be57e7d3 [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
2019-11-19 14:23:48 +01:00
Laurent Mignon (ACSONE)
4730c9fe53 [FIX] report_py3o: must return the path to the report
refs #119
2019-11-19 14:23:48 +01:00
Alexis de Lattre
0a6f32d1fc Add option py3o_multi_in_one for Py3o reports 2019-11-19 14:23:48 +01:00
Guewen Baconnier
54248ddea1 Pass option for escaping False values to server
Needs https://bitbucket.org/faide/py3o.fusion/pull-requests/1
2019-11-19 14:23:48 +01:00
Guewen Baconnier
9ad06ad2a9 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.
2019-11-19 14:23:48 +01:00
Laurent Mignon (ACSONE)
ab7c0b4f36 [IMP] report_py3o: prevent injections when retrieving the template from path 2019-11-19 14:23:48 +01:00
Alexis de Lattre
b56f430e64 [FIX] delete PDF invoice attachment on invoice back to draft (native feature now working with py3o) 2019-11-19 14:23:48 +01:00
Laurent Mignon (ACSONE)
9b3aef021c [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
2019-11-19 14:23:48 +01:00
Laurent Mignon (ACSONE)
5f50f781a6 [IMP] Allow to override/extend the way we get the fallback template 2019-11-19 14:23:48 +01:00
Jonathan Nemry (ACSONE)
15882b3ba5 * travis.yml
* flake8
2019-11-19 14:23:48 +01:00
Laurent Mignon
b0fe0b14f4 [IMP] Minimizes memory consumption
Conflicts:
	report_py3o/models/py3o_report.py
2019-11-19 14:23:48 +01:00
Jonathan Nemry (ACSONE)
b43caf05aa [FIX] imports 2019-11-19 14:23:48 +01:00
Laurent Mignon
990e66123a [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
2019-11-19 14:23:48 +01:00
Alexis de Lattre
4636bd38bd PEP8 fix 2019-11-19 14:23:48 +01:00
Alexis de Lattre
ebe80d514b Port report_py3o to Odoo v10 2019-11-19 14:23:48 +01:00
Laurent Mignon (ACSONE)
f9d3aa6487 [FIX] Check constrains only if report_type == 'py3o' 2019-11-19 14:23:48 +01:00
Laurent Mignon
d8d652e9d8 Add more tests and fixes issues found by tests 2019-11-19 14:23:48 +01:00
Laurent Mignon
5017b759fa rename module ir_report to ir_actions_report_xml 2019-11-19 14:23:48 +01:00
Laurent Mignon
fd36ac120b Replace plain SQL by orm 2019-11-19 14:23:48 +01:00
Alexis de Lattre
15a8a2e5ec Take into accounts most remarks of @lasley
Remove <data> in views
Protect import of py3o libs
Remove dep on base module
Other small changes
2019-11-19 14:23:48 +01:00
Alexis de Lattre
d5ce2246a9 Small usability improvements
Replace README.md by README.rst (not finished)
2019-11-19 14:23:48 +01:00
Laurent Mignon
22bff734d7 Add simple tests and fix call to fusion server 2019-11-19 14:23:48 +01:00
Florent AIDE
e895553c2f fixed missing comma in model definition 2019-11-19 14:23:48 +01:00
Laurent Mignon
35b43947f5 Improve filetype selection name 2019-11-19 14:23:48 +01:00
Laurent Mignon
980ca9c12c [IMP] Allow user to use local fusion 2019-11-19 14:23:48 +01:00
Laurent Mignon
21c939e9fe [IMP] Add the possiblity to get the template from an absolute path on the server 2019-11-19 14:23:48 +01:00
Laurent Mignon
67b54aeb1c Remove unicode string 2019-11-19 14:23:48 +01:00
Laurent Mignon
8ae3b0293c [IMP] New API + Short Hearder 2019-11-19 14:23:48 +01:00
Laurent Mignon
61ed3c8ec0 Move to report_py3o after import from HG 2019-11-19 14:23:48 +01:00