Odoo Help

Welcome!

This community 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.

0

Reflect model changes to PostgreSQL

By
ubik
on 11/20/15, 11:47 AM 419 views

How do I reflect changes made to some model (adding a field, deleting a model, etc.) into database? I wonder if Odoo provides some facility to handle database schema migrations or how to do that.

Any help greatly appreciated.

Changes to the model schema can be made via the User Interface or via modules using Python. Which method are you using? You also mention migration. Are you migrating between versions? Perhaps some lower level detail about what you are doing and what's not working would help get your question answered?

Bista Solutions US, Ray Carnes
on 11/20/15, 1:05 PM

Hi Ray, the question was not well posed because I didn't yet read enough docs to formulate it appropriately. In the meantime I read some docs, and understand I can prototype models and use them as templates for new models, which partially answers my question. But, what should I do if I want to modify an existing model, already in postgres and with table containing data? Hope now it makes sense. Thanks.

ubik
on 11/20/15, 3:09 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 11/20/15, 11:47 AM
Seen: 419 times
Last updated: 11/20/15, 3:09 PM