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

Hello,

Is it possible to override an existing res_config field?

I've inherited the original res_config model. Then I added the field I'd like to override (a boolean) to the _columns dictionary and added the _defaults dictionary setting the boolean to True. This had no effect. I then added the res_config_view.xml to my module and added my own test_bool boolean field, and set that in the defaults to true. When updating the test_bool field was set but the other still was not.

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

Hy,

Some fields are set "non updatable" in openerp. If you go in the Conciguration > .... > Model, check the content of your object and check that your field is updatable. If not, try on a backup databse to set the value to updatable and then reset the correct value

regards

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
3
مارس 25
12457
1
مايو 15
5386
2
مارس 15
6596
0
مارس 15
4546
6
أبريل 23
39076