Skip to content
Snippets Groups Projects
Commit 51b36c3d authored by Xavier Bol (xbo)'s avatar Xavier Bol (xbo) Committed by Yannick Tivisse
Browse files

[IMP] base: add default image for users + placeholder if unassigned


1/ When the new database is created without demo data, the admin has a
   'silhouette' as a default picture. When a new user is created without
   picture given by the current user, the new user will have a 'silhouette'
   as a default profile picture.

2/ web: image for fa-user-slash. This image will be used when a record is
   unassigned.

3/ web, *: Change placeholder by default when record is unassigned.
   We want to have a fa-user-slash icon when a record is unassigned instead
   of 'placeholder.png'. A method is created in the BaseModel to have a
   generic method to change easily the placeholder for other models.

4/ Adapt kanban test to keep the same behaviour. Attention the behaviour is
   a bit different. Because, now the default image is given by the server to
   change easily the default image when a record doesn't have an image.
   Thus, we don't say if it's the default placeholder, but we can say it's
   not the same image of the record (in this test, the record, it's the
   partner).

5/ misc: display 'Unassigned' in the hover on kanban cards if record is unassigned

closes odoo/odoo#41356

Taskid: 2060206
Related: odoo/enterprise#7758
Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
Co-authored-by: default avatarjdoutreloux <jud@odoo.com>
Co-authored-by: default avatarYannick Tivisse <yti@odoo.com>
parent be01db2f
No related branches found
No related tags found
No related merge requests found
Showing
with 84 additions and 25 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment