On 2016-10-04 23:57, Ryan wrote: > > 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)
You have access to the user id here: http://doc.tryton.org/4.0/trytond/doc/ref/transaction.html#trytond.transaction.Transaction.user -- Cédric Krier - B2CK SPRL Email/Jabber: cedric.kr...@b2ck.com Tel: +32 472 54 46 59 Website: http://www.b2ck.com/ -- 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/20161005081158.GW99626%40tetsuo.