Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
1 Ответить
3687 Представления

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

Аватар
Отменить
Related Posts Ответы Просмотры Активность
1
дек. 24
4575
3
нояб. 24
30979
1
дек. 21
3218
0
дек. 21
2797
Colimn invisible Решено
1
нояб. 19
3145