Print Engine is broken Converting to other type that is not PDF or HTML
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Server (MOVED TO GITHUB) |
Invalid
|
Wishlist
|
Unassigned |
Bug Description
Crating reports and selecting odt file extension to ou give me an exception!
Menu > Administration > Low Level Objects > Actions > Report XML
Search with the Object File : "Invoice"
Edit this element and change the value that Say PDF for ODT.
Traceback (most recent call last):
File "/home/
(result, format) = obj.create(cr, uid, ids, datas, context)
File "/home/
fnct_ret = fnct(cr, uid, ids, data, report_xml, context)
File "/home/
return self.create_
File "/home/
rml_dom = self.preprocess
File "/home/
self.
File "/home/
t = _regex1.sub(_sub1, node.text)
File "/home/
while n.tag not in match:
AttributeError: 'NoneType' object has no attribute 'tag'
Edit The Element Again and put HTML
The result if the field are not in a setion this are not located and the printing is directly with the names of variables.
THIS HAPPEND on web-client ando with gtk-client.
I have resources to work in repair it, some body can explain in few words how is the logic in the printing system ¡¡¡¡please!!!!, ¿where are the scripts and the converters? because we had worked on it and We didn't found this characteristic in all the source code, debug the printing behaviour is a COMPLETE MISTERY.
Thanks.
Related branches
- Olivier Dony (Odoo): Needs Fixing
-
Diff: 213 lines (+58/-15)9 files modifiedbin/addons/__init__.py (+2/-2)
bin/addons/base/i18n/base.pot (+50/-0)
bin/addons/base/ir/ir_actions.py (+2/-3)
bin/addons/base/ir/ir_model.py (+1/-1)
bin/addons/base/module/wizard/base_module_upgrade.py (+1/-1)
bin/addons/base/res/partner/partner.py (+0/-1)
bin/addons/base/res/res_user.py (+1/-1)
bin/report/printscreen/ps_list.py (+0/-1)
bin/report/report_sxw.py (+1/-5)
Changed in openobject-server: | |
importance: | Undecided → High |
milestone: | none → 5.0.9 |
status: | New → Confirmed |
Changed in openobject-server: | |
milestone: | 5.0.9 → 5.0.10 |
Changed in openobject-server: | |
milestone: | 5.0.10 → 5.0.11 |
Changed in openobject-server: | |
milestone: | 5.0.11 → 5.0.12 |
Changed in openobject-server: | |
milestone: | 5.0.12 → 5.0.15 |
Hi Nhomar.
Take a look at the code in "bin/report/ report_ sxw.py" (/home/ nhomar/ openerp/ stable/ 5.0/instancias/ ingelub/ server/ bin/report/ report_ sxw.py) , it is there where the creation of ODT or HTML files is done.
The report engine, currently is mostly an XML parser that reads RML files (based on ReportLab:http:// www.reportlab. com/software/ opensource/ though not all features are supported: https:/ /bugs.launchpad .net/openobject -server/ +bug/509266) and either writes a transformed XML file like a HTML or ODT file (after all ODT files are compressed zip archives with several xml files inside), or writes a PDF file in a similar way to ReportLab. In the "bin/report/render" you can find the code that does the XML transformation.
Some people have extended the parser with modules, so it can: /launchpad. net/openobject- client- kde /launchpad. net/report- openoffice
- Process jasper reports files (using Jasper Reports engine). Take a look at the server modules in https:/
- Process OpenOffice files directly (no RML step) and output ODT or PDF files. Take a look at https:/
- Even we, at Pexego, developed our own OpenOffice module (it hasn't been released yet, as we are considering merging with the previous addon) that can read any format supported by OpenOffice and write any format supported by OpenOffice (you can do ODT to PDF, but you can also have an ODS template that output XLS files, or a RTF template that outputs DOC files...), and even supports subreports [But this engine has a 'problem' that the previous one does not: it requires OpenOffice to be installed on the server]