Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3740 Lượt xem

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 ?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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 ......)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 12 24
4588
3
thg 11 24
31010
1
thg 12 21
3245
0
thg 12 21
2826
Colimn invisible Đã xử lý
1
thg 11 19
3159