Groups
Groups
Sign in
Groups
Groups
tryton-es
Conversations
About
Send feedback
Help
Como obtengo el usuario con el que estoy conectado?
18 views
Skip to first unread message
Maicoly Guerrero
unread,
Oct 17, 2018, 4:58:16 PM
10/17/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tryton-es
Buenas tardes amig@s,
Como puedo obtener los datos del usuario que esta logueado o conectado
en la sesión.
Sergi Almacellas Abellana
unread,
Oct 18, 2018, 3:09:45 AM
10/18/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tryt...@googlegroups.com
En la transación tienes el usuario con el que se esta ejecutando:
http://docs.tryton.org/projects/server/en/latest/ref/transaction.html?highlight=user#trytond.transaction.Transaction.user
Para obtener los datos solo tienes que instanciarlo:
pool = Pool()
User = pool.get('res.user')
user = User(Transaction().user)
Un saludo,
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk
Maicoly Guerrero
unread,
Oct 18, 2018, 9:53:20 AM
10/18/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to tryton-es
Te agradezco Sergi!
Muchas gracias!!
Reply all
Reply to author
Forward
0 new messages