c2c-oerpscenario team mailing list archive
-
c2c-oerpscenario team
-
Mailing list archive
-
Message #06377
[Bug 681692] Re: Support for RML "splitlast" and "splitfirst" values on start and stop attributes for blockTableStyle
Let the team will decide.
** Changed in: openobject-server
Status: New => Triaged
** Changed in: openobject-server
Assignee: (unassigned) => OpenERP's Framework R&D (openerp-dev-framework)
--
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/681692
Title:
Support for RML "splitlast" and "splitfirst" values on start and stop attributes for blockTableStyle
Status in OpenObject Server:
Triaged
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
References