I want shorten text from field o.partner_id.name on a rml report. The output text should be max 40pt long. To calculate the text length i need the Fontname and Fontsize.
How can i get the style name or better direct the fontname and fontsize from the para tag in my rml parser method truncateString() without adding both as parameter to the parser method?
<para style="my_default_9">###[[truncateString(o.partner_id.name, 40)]]###</para>
I looking for an alternative to : <para style="my_default_9">###[[truncateString(o.partner_id.name, 40, "Arial", 8)]]###</para>
debug2 = self._node.__getattribute__('style')
self._node is NoneObject on my testsystem