Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
3705 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
4
led 24
24056
2
led 24
2975
0
srp 23
2827
5
zář 21
18266
3
led 21
18676