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

hi guys, I want to show a field in the res.partner form view but the field is in another object. How can i do to show it in that view? Thanks a lot for your answers

頭像
捨棄
最佳答案

Hi,

You must define a field type function in res.partner. and in this function get information in another object.

def _get_other(self,cr,uid,ids,field,arg,context=None):       
       res={}
       //your treatment
       return res

_columns = {
          'other': fields.function(_get_other, method=True, type='float',string='Info other'),
          }

Thank You.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
4
1月 24
24055
2
1月 24
2975
0
8月 23
2827
5
9月 21
18266
3
1月 21
18676