KERNEL: fix print screen

bzr revid: ced-0af742cede276df9dbbcf723a38b3dea755f4ff9
This commit is contained in:
ced
2007-06-11 06:35:11 +00:00
parent 2ceb005cc0
commit 6232b2e8ab
3 changed files with 8 additions and 5 deletions
+6 -1
View File
@@ -145,7 +145,12 @@ class ir_values(osv.osv):
if not len(datas):
#ir_del(cr, uid, x[0])
return False
datas = datas[0]
def clean(x):
for key in ('report_sxw_content', 'report_rml_content', 'report_sxw', 'report_rml'):
if key in x:
del x[key]
return x
datas = clean(datas[0])
else:
datas = pickle.loads(x[2])
if meta:
+1 -3
View File
@@ -79,7 +79,7 @@ class report_printscreen_list(report_int):
def _create_table(self, uid, ids, fields, fields_order, results, context, title=''):
pageSize=[297.0,210.0]
pageSize=[210.0,297.0]
impl = minidom.getDOMImplementation()
new_doc = impl.createDocument(None, "report", None)
@@ -146,8 +146,6 @@ class report_printscreen_list(report_int):
lines.appendChild(node_line)
new_doc.childNodes[0].appendChild(lines)
file('/tmp/terp.xml','w+').write(new_doc.toxml())
styledoc = libxml2.parseFile(os.path.join(tools.config['root_path'],'addons/base/report/custom_new.xsl'))
style = libxslt.parseStylesheetDoc(styledoc)
doc = libxml2.parseDoc(new_doc.toxml())
+1 -1
View File
@@ -80,7 +80,7 @@ class report_printscreen_list(report_int):
def _create_table(self, uid, ids, fields, fields_order, results, context, title=''):
pageSize=[297.0,210.0]
pageSize=[210.0,297.0]
impl = minidom.getDOMImplementation()
new_doc = impl.createDocument(None, "report", None)