Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3699 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
gen 24
24054
2
gen 24
2972
0
ago 23
2823
5
set 21
18261
3
gen 21
18672