[IMP] report engine: added possibility to use styles on TR tag

bzr revid: qdp-launchpad@openerp.com-20110614082711-l5cvbvm405h247ek
This commit is contained in:
fp
2011-06-14 10:27:11 +02:00
committed by Quentin (OpenERP)
parent bd5647ceb4
commit 6758ee6133
+5 -3
View File
@@ -631,9 +631,11 @@ class _rml_flowable(object):
paraStyle = None
if tr.get('style'):
st = copy.deepcopy(self.styles.table_styles[tr.get('style')])
for s in st._cmds:
s[1][1] = posy
s[2][1] = posy
for si in range(len(st._cmds)):
s = list(st._cmds[si])
s[1] = (s[1][0],posy)
s[2] = (s[2][0],posy)
st._cmds[si] = tuple(s)
styles.append(st)
if tr.get('paraStyle'):
paraStyle = self.styles.styles[tr.get('paraStyle')]