El 07/02/17 a les 11:58, Carlos Eduardo Sotelo Pinto ha escrit:

​Dear comunity

I would like to kow the right way on getting the current user logged
information​.

This is normally available as context keys.

I am looking a way to make some fields on invoicing, based on the
current user role, in order on doing a bahvcior close to a POS, not a
POS. I mean, when
- a user is just finantial, then the invoicing behavior is the default,
and payments are based on bank statements.

- a user is a customer attendant, invoicing could be based on cards and
cash payment
How you determine if a user is finantial or custome attendant? If it's based on User Group, you have the user groups available on the context with:

Transaction().context.get('groups').

Hope it helps.
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk

--
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/af70e074-a806-51f5-bfa5-76acd3030e93%40koolpi.com.

Reply via email to