_defaults = {
'needs_ini_approval': lambda *args: 1,
'needs_cus_approval': lambda *args: 1, # This should work. try again by
restating the server.
'custodian_id': lambda obj, cr, uid, context: uid
}
If you want the current user to be assigned, then the custodian_id should be
many2one of res_users.
'custodian_id': fields.many2one('res.users', 'Custodian', required=True),
uid refers to the the id of logged in User.
-------------------- m2f --------------------
--
http://www.openerp.com/forum/viewtopic.php?p=27293#27293
-------------------- m2f --------------------
_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users