summaryrefslogtreecommitdiff
path: root/bin/report
diff options
context:
space:
mode:
authorP. Christeas <p_christ@hol.gr>2009-01-31 12:08:04 +0200
committerP. Christeas <p_christ@hol.gr>2009-01-31 12:08:04 +0200
commitb69c19fbb2a56de017f466c76d06addd968c96ce (patch)
tree18fd5664613588c2901a5ede849592ddba2b3e9d /bin/report
parentf84b1e90e73969887f9e1ae6e43548c3d853c7e8 (diff)
parent27240361ca5ead2597ae8f0c63043bab0e969001 (diff)
Merge branch 'master' of openobject-server into mdv-gpl3-py26
Conflicts: bin/netsvc.py bin/tools/translate.py bzr revid: p_christ@hol.gr-20090131100804-pu97gelwjh1flk3h
Diffstat (limited to 'bin/report')
-rw-r--r--bin/report/interface.py5
-rw-r--r--bin/report/report_sxw.py6
2 files changed, 5 insertions, 6 deletions
diff --git a/bin/report/interface.py b/bin/report/interface.py
index 74f952128d5..d11d5a7a21e 100644
--- a/bin/report/interface.py
+++ b/bin/report/interface.py
@@ -20,7 +20,8 @@
#
##############################################################################
-import os,re
+import os
+import re
#Ged> Why do we use libxml2 here instead of xml.dom like in other places of the code?
import libxml2
@@ -121,7 +122,7 @@ class report_rml(report_int):
pos_xml = i.end()
doc = print_xml.document(cr, uid, {}, {})
- tmpl_path = addons.get_module_resource('custom', 'corporate_defaults.xml')
+ tmpl_path = addons.get_module_resource('base', 'report', 'corporate_defaults.xml')
doc.parse(tmpl_path, [uid], 'res.users', context)
corporate_header = doc.xml_get()
doc.close()
diff --git a/bin/report/report_sxw.py b/bin/report/report_sxw.py
index cec9e630c93..d34e0c1e2d0 100644
--- a/bin/report/report_sxw.py
+++ b/bin/report/report_sxw.py
@@ -715,10 +715,8 @@ class report_sxw(report_rml):
if want_header:
#Add corporate header/footer
- if report_type=='odt':
- rml = tools.file_open('custom/corporate_odt_header.xml').read()
- if report_type=='sxw':
- rml = tools.file_open('custom/corporate_sxw_header.xml').read()
+ if report_type in ('odt', 'sxw'):
+ rml = tools.file_open(os.path.join('base', 'report', 'corporate_%s_header.xml' % report_type)).read()
rml_parser = self.parser(cr, uid, self.name2, context)
rml_parser.parents = sxw_parents
rml_parser.tag = sxw_tag