Odoo Help

Welcome!

This community 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.

0

Open ERP 7 report designer string operations

By
Dragan Gregurec
on 11/17/15, 3:42 AM 477 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 ?

2

Drees Far

--Drees Far--
1130
| 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).

Answer:

s = "124/P1/25"

print s

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

print s

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

print s

s.replace('P','')

print s

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

print s

Best Regards.

0
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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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