[FIX]account:[trunk] accounting - GL report (and others) - repeat column headers

lp bug: https://launchpad.net/bugs/645969 fixed

bzr revid: apa@tinyerp.com-20101102080019-vnfo4o8me9pwbtne
This commit is contained in:
apa-tiny 2010-11-02 13:30:19 +05:30
parent 6575f75444
commit 6800b74fb7
1 changed files with 24 additions and 0 deletions

View File

@ -645,7 +645,30 @@ class _rml_flowable(object):
def _textual_image(self, node):
return base64.decodestring(node.text)
def _pto(self, node):
sub_story = []
pto_header = None
pto_trailer = None
for node in utils._child_get(node, self):
if node.tag == etree.Comment:
node.text = ''
continue
elif node.tag=='pto_header':
pto_header = self.render(node)
elif node.tag=='pto_trailer':
pto_trailer = self.render(node)
else:
flow = self._flowable(node)
if flow:
if isinstance(flow,list):
sub_story = sub_story + flow
else:
sub_story.append(flow)
return platypus.flowables.PTOContainer(sub_story, trailer=pto_trailer, header=pto_header)
def _flowable(self, node, extra_style=None):
if node.tag=='pto':
return self._pto(node)
if node.tag=='para':
style = self.styles.para_style_get(node)
if extra_style:
@ -790,6 +813,7 @@ class _rml_flowable(object):
return process_story(node_story)
class EndFrameFlowable(ActionFlowable):
def __init__(self,resume=0):
ActionFlowable.__init__(self,('frameEnd',resume))