1) The Idea is to get the user's group and use it as a default value, 2) 
and later to be filtered with a domain on the next Many2One field to show 
only documents (user created table) assign to the group.

1) I do not know how to get the group name of the user log in (so need to 
pick from the groupname)
2) working correctly but user needs to chose first their group via groupname

Thanks for any help.

------------

 groupname = fields.Many2One('res.group', 'Group', required=False)
 group = fields.Char('Group')
 code = fields.Many2One('nhp.documents', 'Document', 
domain=[('group','=',Eval('groupname'))])

 @staticmethod
    def default_group():
        return 'NHP'

------------

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/38472ee1-2ca3-4a6c-a71c-1daf963d9eb7%40googlegroups.com.

Reply via email to