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

A quick question here. For modules that add an extra field to a model, after inheritance,what happens on uninstallation? Are the additional columns deleted after uninstallation of the module?

الصورة الرمزية
إهمال
أفضل إجابة

If you are uninstalling your custom module means, your simply deleting all your data's, tables, columns in database itself. Yes the additional columns are deleted after unistallation of the module.

You can find in server log itself when unistalling a module:

Eg log:
openerp.addons.base.ir.ir_model: Deleting 5389@ir.model.fields
openerp.addons.base.ir.ir_model: Deleting 852@ir.actions.act_window
openerp.addons.base.ir.ir_model: Deleting 1414@ir.ui.view
openerp.addons.base.ir.ir_model: Deleting 556@ir.ui.menu
openerp.addons.base.ir.ir_model: Deleting 549@ir.model
 

الصورة الرمزية
إهمال
الكاتب

For instance, if a create a new module that adds a new field to purchase order by adding a new field...e.g department, on uninstalling my new module, will the new field disappear as well in the purchase order?

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
مايو 21
9359
1
أكتوبر 15
6097
1
مارس 15
3842
1
مارس 15
10626
3
مايو 24
15044