Thanks Sir Cedric, Just a newbie here, just a month ago...
Can you please show me the code for creating a query to check the user's id to get his group. does the user group can be found on 'res_group'? or res_user-res_group? Thanks again for any help. Best Regards... //elite On Wednesday, October 5, 2016 at 4:15:04 PM UTC+8, Cédric Krier wrote: > > 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: [email protected] <javascript:> > 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/d64420fb-4474-4c7c-9c0b-0fc36fe88f7c%40googlegroups.com.
