Getting User Info

33 views
Skip to first unread message

Carlos Eduardo Sotelo Pinto

unread,
Feb 7, 2017, 6:20:07 AM2/7/17
to try...@googlegroups.com

​Dear comunity

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

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

Best regards 

--
Carlos Eduardo Sotelo Pinto
    Senior Software Developer
    Claro RPC +51 989550602
    GTalk: carlos.so...@gmail.com | Skype: csotelop
    GNULinux RU #379182 | GNULinux RM #277661

Please consider the environment before printing this email
Join the campaign at http://thinkBeforePrinting.org

Sergi Almacellas Abellana

unread,
Feb 7, 2017, 7:52:54 AM2/7/17
to try...@googlegroups.com
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
Reply all
Reply to author
Forward
0 new messages