# How to see current employee on client (GTK,SAO)

**URL:** https://discuss.tryton.org/t/how-to-see-current-employee-on-client-gtk-sao/2162
**Category:** Ideas
**Created:** [January 8, 2020, 2:25pm UTC](https://discuss.tryton.org/t/how-to-see-current-employee-on-client-gtk-sao/2162 "2020-01-08T14:25:57Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tbruyere](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/tbruyere/32/37_2.png) [@tbruyere](https://discuss.tryton.org/u/tbruyere)
#### Post date: [January 8, 2020, 2:25pm UTC](https://discuss.tryton.org/t/how-to-see-current-employee-on-client-gtk-sao/2162/1 "2020-01-08T14:25:57Z")

</div>

Currently in the client you can see the following information in the header.

**GTK** :  
Tryton - {LOGIN NAME} - {COMPANY} [{CURRENCY}]  
{DATABASE}  
**SAO** :  
{LOGIN}) - {COMPANY} [{CURRENCY}]

![2020-01-08_13-40_1](https://discuss-cdn.tryton.org/uploads/default/optimized/1X/054e81e594d7093d946a4ab5a217763f526a4084_2_690x26.png)

![2020-01-08_13-40](https://discuss-cdn.tryton.org/uploads/default/original/1X/e77c40108ef2435f5c084932b3e2926544a28d75.png)

But there is no information from the current employee.

In some cases Tryton retrieves the current employee for treatment.  
example: [https://codereview.tryton.org/276621002/](https://codereview.tryton.org/276621002/) use of current employee for quoted\_by and confimerd\_by information.

It is necessary to go into user preferences to know the current employee.

In the case of a “backoffice” user who manages several employees, it becomes difficult to know the current employee before launching a treatment.

How do I display this information at the client level for a quick view?

- Modify the header and add the current employee in addition to the login. But there is a risk of duplicating information if the name of the login is the same as the name of the employee.
- Display employee name instead of login name but take the login name if there is no employee

---

<div class="post-metadata">

### Author: ![pokoli](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/pokoli/32/22_2.png) [@pokoli](https://discuss.tryton.org/u/pokoli)
#### Post date: [January 8, 2020, 3:29pm UTC](https://discuss.tryton.org/t/how-to-see-current-employee-on-client-gtk-sao/2162/2 "2020-01-08T15:29:04Z")

</div>

The company module overrides [the get\_status\_bar method of the user](https://hg.tryton.org/modules/company/file/0ed259ef06f2/res.py#l79) to include the company name and the currency.

I guess we can also add the employee and [the current warehouse](https://hg.tryton.org/modules/stock/rev/ab65dc403e76) to the status bar information

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 8, 2020, 3:36pm UTC](https://discuss.tryton.org/t/how-to-see-current-employee-on-client-gtk-sao/2162/3 "2020-01-08T15:36:14Z")

</div>

We are limited by the size of the status bar.  
So for me, we should add only new information. For example if the user as only one employee available for its current company, there is no need to display the employee. Idem for the warehouse if there is only one warehouse etc.

---

<div class="post-metadata">

### Author: ![jgras](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/jgras/32/285_2.png) [@jgras](https://discuss.tryton.org/u/jgras)
#### Post date: [January 10, 2020, 7:06pm UTC](https://discuss.tryton.org/t/how-to-see-current-employee-on-client-gtk-sao/2162/4 "2020-01-10T19:06:43Z")

</div>

Just my 2 cent: when you are refactoring you should move the “Tryton -”-part to the end of the string because this is already indicated by the icon. For me the Company is the most important - but this may differ.

 ![grafik](https://discuss-cdn.tryton.org/uploads/default/original/1X/b3d30b8d3135f1e0dff3098526581de2c836ddd9.png)

---

<div class="post-metadata">

### Author: ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)
#### Post date: [January 15, 2020, 4:23pm UTC](https://discuss.tryton.org/t/how-to-see-current-employee-on-client-gtk-sao/2162/5 "2020-01-15T16:23:11Z")

</div>

Here is an implementation of the proposed changes: [Improve user status bar (#8994) · Issues · Tryton / Tryton · GitLab](https://bugs.tryton.org/issue8994)
