Odoo Help

0

Open ERP 7 report designer string operations

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

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.

Register

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)

Stats

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