تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
4367 أدوات العرض

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?

الكاتب

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.

المنشورات ذات الصلة الردود أدوات العرض النشاط
database migration تم الحل
1
مارس 23
2233
1
أبريل 17
3509
1
يناير 25
6032
Databse schema تم الحل
2
مارس 15
9557
0
ديسمبر 22
1944