break long words

Asked by Pravitha V

i just want to wrap a long word with eg:600 cahracters without any space to a single column.i hvae found a break_long_words function for python how can i implement it in my rml reports ?someone please help its very urgent

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Pravitha V
Solved:
Last query:
Last reply:
Revision history for this message
Numérigraphe (numerigraphe) said :
#1

First you should add the function to the report's parser class.
Then it will be available to RML's python expressions ( "[[ ... ]]" ).
Lionel Sausin.

Revision history for this message
Pravitha V (pravithavarghese1) said :
#2

can you be more specific i didnt got what you are trying to say sir

Revision history for this message
Numérigraphe (numerigraphe) said :
#3

Usually you have a python file along with each RML file, containing a parser class. This class is there to inject additional python objects to the RML's context.
For example in sale/report, sale_order.rml goes with sale_order.py file. This file adds the python module "time" to the RML's context.
I suppose you could do the same with your function.
Lionel Sausin.

Revision history for this message
Pravitha V (pravithavarghese1) said :
#4

thankyou for your help my prob got solved

Revision history for this message
Pravitha V (pravithavarghese1) said :
#5

thankyou