İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3714 Görünümler

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

Avatar
Vazgeç
En İyi Yanıt

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.

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
4
Oca 24
24069
Attrs attribute Çözüldü
2
Oca 24
2981
0
Ağu 23
2830
5
Eyl 21
18274
3
Oca 21
18701