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

I am inheritting contact form view to add fields tracking to odoo fields, everything was going fine until I faced a weird problem on a field, I uninstalled the module and it kept showing: I added this :x_studio_is_an_end_user=fields.Boolean(string='X studio',track_visibilty='always'). And I am getting always this error: 

ValueError: Invalid field 'x_studio_is_an_end_user' on model 'res.partner'


In the manifest I added this, but I am not sure about it: 

'depends': [
'base',
],
頭像
捨棄
最佳答案

Hi,

The reason for this error is that the field ‘x_studio_is_an_end_user’ is removed automatically when you uninstall that module. Every customization we add through the studio will be automatically removed once we uninstall or upgrade that module. It is always better to add new fields or new customization through code.

For solving these issues, you need to add the same field again. Or you need to remove the code that used the field ‘x_studio_is_an_end_user’.

Regards

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
12月 22
2102
0
9月 21
2318
1
7月 25
1194
2
3月 25
1477
0
2月 25
1123