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.
I have created the datefield and working with it, now my requirement changed now i need to change the date field to datetime fields without loosing the previous data. how to achieve this scenario.
You will not loose any data if you do not uninstall your module and just upgrade it, so you'll need simply change fields definition:
1) CHANGE: 'your_date_field': fields.date(... TO 'your_date_field': fields.datetime(....
2) Restart openerp
3) In your browser go to page: "Settings/Modules/Installed Modules", find your module, open it and click on "Upgrade" button. As upgrade process ends, you're done. No any data will be lost and field type will be changed as you want.
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: 9/25/14, 8:42 AM|
|Seen: 1643 times|
|Last updated: 3/16/15, 8:10 AM|