Odoo Help


Open ERP 7 report designer string operations

Dragan Gregurec
on 11/17/15, 3:42 AM 593 views

How I can translate field value  for example (124/P1/25 to 124-1-25). Actually how I can do sting operations  in Report Designer ?


Drees Far

--Drees Far--
Drees Far
| 5 2 6
Tunis, Tunisia
--Drees Far--
Drees Far
On 11/17/15, 4:15 AM

Hello my friend;

here is how you can convert your (124/P1/25 to 124-1-25).


s = "124/P1/25"

print s


print s

s = s.replace('/','-')

print s


print s

s = s.replace('P','')

print s

Best Regards.

Dragan Gregurec
On 11/17/15, 6:09 AM

Thanks  I used that [ ((o.fiskal_broj).replace('/','-')).replace('P','') ]]  in my report. You helped me a lot. :)

in your service :) but why dont you vote ;)

Drees Far
on 11/17/15, 7:06 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/17/15, 3:42 AM
Seen: 593 times
Last updated: 11/17/15, 7:23 AM