[FIX] custom report xml creation
authorChristophe Simonis <chs@tinyerp.com>
Tue, 8 Dec 2009 17:37:24 +0000 (18:37 +0100)
committerChristophe Simonis <chs@tinyerp.com>
Tue, 8 Dec 2009 17:37:24 +0000 (18:37 +0100)
bzr revid: chs@tinyerp.com-20091208173724-cc749thka4ll4k5o

bin/report/custom.py

index bb1b32c..cea5b91 100644 (file)
@@ -291,7 +291,7 @@ class report_custom(report_int):
 
         def _append_node(name, text):
             n = etree.SubElement(config, name)
-            t.text = text
+            n.text = text
 
         _append_node('date', time.strftime('%d/%m/%Y'))
         _append_node('PageFormat', '%s' % report['print_format'])