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
- Kirjanpito
- Varastointi
- PoS
- Project
- MRP
Tämä kysymys on merkitty
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 ;)
Nautitko keskustelusta? Älä vain lue, vaan osallistu!
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
RekisteröidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
|
1
marrask. 15
|
7290 | ||
Reportlab: Conditional Table Header
Ratkaistu
|
|
2
elok. 15
|
10178 | |
|
0
maalisk. 15
|
7012 | ||
|
4
maalisk. 25
|
22834 | ||
|
2
huhtik. 24
|
1868 |