Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5051 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
มี.ค. 25
12649
1
พ.ค. 15
5557
2
มี.ค. 15
6700
0
มี.ค. 15
4662
6
เม.ย. 23
39287