You are here: Home OpenERP Developing Tree with a function field
Search
Advanced Search…
E-Mail

Webmail: webmail.wyden.com

E-Mail Preferences: postfix.wyden.com/users

E-Mail Administration: postfix.wyden.com

Statistics
Total: 473
Total Pages: 286
Total Folders: 87
Total Files: 18
Total Links: 26
Last modification: 19.04.2012 15:21
 

Tree with a function field

by Wyden Silvan last modified 27.01.2010 14:25

def _getmytest(self, cr, uid, ids, field_name, arg, context):
        res = {}
        #dumy function that returns only the ids
        for a in ids:
            res[a] = a
        return res

 

 _columns = {

        'mytest': fields.function(_getmytest, type='char', size=512, method=True, string='thats my test'),
    }