c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #05947
[Bug 681692] [NEW] Support for RML "splitlast" and "splitfirst" values on start and stop attributes for blockTableStyle
Public bug reported:
In "OpenERP Server\library.zip\report\render\rml2pdf\utils.py" modify
the function "tuple_int_get" to correctly parse start and stop
attributes (e.g. start="0,splitlast" stop="-1,splitlast")
The new code we propose for 'tuple_int_get' is:
def tuple_int_get(node, attr_name, default=None):
if not node.get(attr_name):
return default
values = node.get(attr_name).split(',')
tuples = []
for x in values:
if x in ('splitfirst','splitlast'):
tuples.append(str(x))
else:
tuples.append(int(x))
return tuples
** Affects: openobject-server
Importance: Undecided
Status: New
** Tags: reporting reportlab rml tables
--
Support for RML "splitlast" and "splitfirst" values on start and stop attributes for blockTableStyle
https://bugs.launchpad.net/bugs/681692
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
Status in OpenObject Server: New
Bug description:
In "OpenERP Server\library.zip\report\render\rml2pdf\utils.py" modify the function "tuple_int_get" to correctly parse start and stop attributes (e.g. start="0,splitlast" stop="-1,splitlast")
The new code we propose for 'tuple_int_get' is:
def tuple_int_get(node, attr_name, default=None):
if not node.get(attr_name):
return default
values = node.get(attr_name).split(',')
tuples = []
for x in values:
if x in ('splitfirst','splitlast'):
tuples.append(str(x))
else:
tuples.append(int(x))
return tuples
Follow ups
References