Here is the patch,
Best regards,
Joël
Index: report_sxw.py
===================================================================
--- report_sxw.py (revision 8320)
+++ report_sxw.py (working copy)
@@ -491,7 +491,8 @@
report_xml =
ir_actions_report_xml_obj.browse(cr, uid, report_xml_ids[0],
context=context)
rml = report_xml.report_rml_content
- report_type = report_xml.report_type
+ if report_xml.report_xml :
+ report_type = report_xml.report_type
else:
rml = tools.file_open(self.tmpl,
subdir=None).read()
report_type= data.get('report_type',
report_type)
Le 11 mars 08 à 19:13, Marc Schulthess - Quod S.A. a écrit :
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hello,
When I try to print the account balance, I get :
ERROR:orm:Programming error: field 'report_type' does not exist in
object 'ir.actions.report.xml' !
and :
Unhandled exception in thread started by <function go at 0x2b3f050>
Traceback (most recent call last):
~ File "/home/terpq/TinySoft/422-prod/server/bin/service/
web_services.py", line 462, in go
~ (result, format) = obj.create(cr, uid, ids, datas, context)
~ File "/home/terpq/TinySoft/422-prod/server/bin/report/
report_sxw.py", line 576, in create
~ create_doc = self.generators[report_type]
KeyError: False
Any help ?
Thanks ?
- --
Marc Schulthess
- -------------------------------------------------
[EMAIL PROTECTED] Mob: +41 (0)79 276 37 29
Ch. du Crêt-Ministre 13 CH-1090 La Croix s/Lutry http://
www.Quod.ch OpenPGP key: 0x6AC4DAEC
=
=
======================================================================
Quod's IT professionals started to partner in 1990, combining field
experience with modern technologies expertise. They pionneered Web
applications, relying on industry standards and open source
solutions. Quod's consultants create custom applications, integrate
solutions selected by clients, migrate applications and data, deploy
ERP and BI environments - always in partnership with clients.
=
=
======================================================================
The information transmitted is intended only for the person or
entity to which it is addressed and may contain confidential and/or
privileged material. Any review, retransmission, dissemination or
other use of, or taking of any action in reliance upon, this
information by persons or entities other than the intended recipient
is prohibited. If you receive this in error, please contact the
sender and delete the material from the computer.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
iQEVAwUBR9bLxdOykqpqxNrsAQJt9AgA0MCDJS8wow7I0VNfGIIW9PLSbM/Yr/lC
ZYTiPqBNnYytt0u30LW+6s1P+xYaMEbufOFt9N+IINGuMcsSC3tPhuhcHF1wI4hn
CwPt8Oip6LFihQyAPcu4i6JuCXlW5n2DF8XGLkTVxBUhmyIP872ZhE/81tAC3bcm
oCKQV2ZTCF4pGMWcROz7nussNR+mgS7Qelrt2irWlPQee+vnQr6nyp+eqRiQeW50
U88HyMvb5xbzyZ/XYxqNdMa3brG+95sYdCrE5NWbIayh80A5v+7agII1Swq5GMWW
OaXTZw3YeHvbnbnYJ3UJ8mszhG0VnTOaBZWLhlk+Rud+blUCWFeuTg==
=1+Qm
-----END PGP SIGNATURE-----
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users
--
Joël Grand-Guillaume
TinyERP Consultant
Business Solutions
Camptocamp SA
PSE A
CH-1015 Lausanne
www.camptocamp.com
Phone: +41 21 619 10 28
Office: +41 21 619 10 10
Fax: +41 21 619 10 00
Email: [EMAIL PROTECTED]
P Please consider the environment before printing this email
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users