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 ?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
2
Odgovori
3842
Prikazi
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.
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 ;)
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
PrijaviRelated Posts | Odgovori | Prikazi | Aktivnost | |
---|---|---|---|---|
|
1
nov. 15
|
7287 | ||
|
2
avg. 15
|
10174 | ||
|
0
mar. 15
|
7012 | ||
|
4
mar. 25
|
22808 | ||
|
2
apr. 24
|
1863 |