Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
3707 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
4
jan. 24
24056
2
jan. 24
2976
0
aug. 23
2827
5
sep. 21
18267
3
jan. 21
18677