Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Guys, importing data from CSV, amongst them there is a field which contain a price but the price is not just a numbers but also currency sign.
So I was trying to remove this sign using replace, trim, re etc but it won't go away :)
The reason why I would like to remove is the field total_price is a float type so I can't write non float values.
How can I do it, how to remove it ?
total_price = record.total_price.replace('£','')
print ' Total price :',total_price
vat_rate = record.included_vat_rate
print ' VAT rate :',vat_rate
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
|Asked: 3/2/16, 11:56 AM|
|Seen: 609 times|
|Last updated: 3/3/16, 4:05 AM|