Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
3695 Переглядів

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
4
січ. 24
24054
Attrs attribute Вирішено
2
січ. 24
2972
0
серп. 23
2823
5
вер. 21
18261
3
січ. 21
18672