Odoo Help

Nicolas Bessi
On 2/9/13, 3:45 PM


  • In you field singature the obj is not requied as it is not a relation type field.
  • type='string' will not work. You should use type='char'
  • but as you try to get a datetime fields the correct type should be datetime.
  • The return of get_textshould be a dict with keys the ids of the record and values the related values

You should have a look at the hr_attendance/hr_attendance.py of addons file

'last_sign': fields.function(_last_sign, type='datetime', string='Last Sign') is a simple sample

Thanks so much, after hours of tests your help solve my problem. I always have to return an array of ids for functions being called by fields? Thanks again! =)

on 2/9/13, 5:14 PM

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


Asked: 2/9/13, 3:03 PM
Seen: 12703 times
Last updated: 3/16/15, 8:10 AM