跳至內容
選單
此問題已被標幟
1 回覆
3719 瀏覽次數

Hi,

All models have some special fields, like write_date, create_date, id,...

But I have some issues with these fields:

  • There's no ir.model.fields entry for them, so we can't have a reference to them
  • If I inherit a model in a specific module and explicitly specify them, they will be accessible as ir.field but if I remove this module, OpenERP will remove these fields on the database (and not on the model...)

Is there any solution to have a reference on ir.model.fields to them and keep them even if the module that use this reference is removed ?

頭像
捨棄
最佳答案

Hello; When it's an inherited columns, i think we must put a constraint on it ( like ON DELETE NO ACTION and ON UPDATE SET NULL ......)

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 24
4579
3
11月 24
30987
1
12月 21
3221
0
12月 21
2811
1
11月 19
3150