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

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
3月 25
12462
1
5月 15
5389
2
3月 15
6609
0
3月 15
4552
6
4月 23
39080