Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tryton
Tryton
Commits
e18836239d12
Commit
e1883623
authored
Jan 15, 2023
by
Cédric Krier
Browse files
Set border to avatar images
We use circle for individuals and rounded for group like companies.
parent
d8dab7c10331
Pipeline
#61476
passed with stages
in 19 minutes and 46 seconds
Changes
9
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
modules/party_avatar/view/company_list.xml
View file @
e1883623
...
...
@@ -3,6 +3,6 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath
expr=
"//field[@name='party']"
position=
"inside"
>
<prefix
id=
"avatar"
icon=
"avatar_url"
icon_type=
"url"
url_size=
"s"
/>
<prefix
id=
"avatar"
icon=
"avatar_url"
icon_type=
"url"
url_size=
"s"
border=
"rounded"
/>
</xpath>
</data>
modules/party_avatar/view/employee_list.xml
View file @
e1883623
...
...
@@ -3,6 +3,6 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath
expr=
"//field[@name='party']"
position=
"inside"
>
<prefix
id=
"avatar"
icon=
"avatar_url"
icon_type=
"url"
url_size=
"s"
/>
<prefix
id=
"avatar"
icon=
"avatar_url"
icon_type=
"url"
url_size=
"s"
border=
"circle"
/>
</xpath>
</data>
modules/party_avatar/view/party_form.xml
View file @
e1883623
...
...
@@ -3,6 +3,6 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath
expr=
"//group[@id='header']"
position=
"after"
>
<field
name=
"avatar"
widget=
"image"
height=
"100"
width=
"100"
xexpand=
"0"
/>
<field
name=
"avatar"
widget=
"image"
height=
"100"
width=
"100"
xexpand=
"0"
border=
"circle"
/>
</xpath>
</data>
modules/party_avatar/view/party_list.xml
View file @
e1883623
...
...
@@ -3,6 +3,6 @@
this repository contains the full copyright notices and license terms. -->
<data>
<xpath
expr=
"//field[@name='name']"
position=
"inside"
>
<prefix
id=
"avatar"
icon=
"avatar_url"
icon_type=
"url"
url_size=
"s"
/>
<prefix
id=
"avatar"
icon=
"avatar_url"
icon_type=
"url"
url_size=
"s"
border=
"circle"
/>
</xpath>
</data>
modules/web_user/view/user_form.xml
View file @
e1883623
...
...
@@ -12,7 +12,7 @@
<field
name=
"email"
widget=
"email"
/>
<newline/>
</group>
<field
name=
"avatar"
widget=
"image"
height=
"100"
width=
"100"
xexpand=
"0"
/>
<field
name=
"avatar"
widget=
"image"
height=
"100"
width=
"100"
xexpand=
"0"
border=
"circle"
/>
<label
name=
"password"
/>
<field
name=
"password"
widget=
"password"
/>
...
...
modules/web_user/view/user_list.xml
View file @
e1883623
...
...
@@ -2,4 +2,8 @@
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tree>
<field
name=
"email"
expand=
"1"
>
<prefix
id=
"avatar"
icon=
"avatar_url"
icon_type=
"url"
url_size=
"s"
border=
"circle"
/>
</field>
<field
name=
"email_valid"
/>
<field
name=
"party"
expand=
"2"
/>
...
...
@@ -5,6 +9,4 @@
<field
name=
"party"
expand=
"2"
/>
<field
name=
"email"
expand=
"1"
/>
<field
name=
"email_valid"
/>
<button
name=
"validate_email"
string=
"Validate E-mail"
/>
<button
name=
"reset_password"
string=
"Reset Password"
/>
</tree>
trytond/trytond/res/view/user_form.xml
View file @
e1883623
...
...
@@ -17,7 +17,7 @@
<field
name=
"password"
widget=
"password"
/>
<button
name=
"reset_password"
colspan=
"2"
/>
</group>
<field
name=
"avatar"
widget=
"image"
height=
"100"
width=
"100"
xexpand=
"0"
/>
<field
name=
"avatar"
widget=
"image"
height=
"100"
width=
"100"
xexpand=
"0"
border=
"circle"
/>
<notebook
colspan=
"4"
>
<page
string=
"User"
id=
"user"
>
<separator
name=
"signature"
colspan=
"4"
/>
...
...
trytond/trytond/res/view/user_form_preferences.xml
View file @
e1883623
...
...
@@ -12,7 +12,7 @@
<label
name=
"password"
/>
<field
name=
"password"
widget=
"password"
/>
</group>
<field
name=
"avatar"
widget=
"image"
height=
"100"
width=
"100"
xexpand=
"0"
/>
<field
name=
"avatar"
widget=
"image"
height=
"100"
width=
"100"
xexpand=
"0"
border=
"circle"
/>
<notebook
colspan=
"4"
>
<page
string=
"User"
id=
"user"
>
<separator
name=
"signature"
colspan=
"4"
/>
...
...
trytond/trytond/res/view/user_list.xml
View file @
e1883623
...
...
@@ -3,7 +3,7 @@
this repository contains the full copyright notices and license terms. -->
<tree>
<field
name=
"name"
expand=
"2"
>
<prefix
id=
"avatar"
icon=
"avatar_url"
icon_type=
"url"
url_size=
"s"
/>
<prefix
id=
"avatar"
icon=
"avatar_url"
icon_type=
"url"
url_size=
"s"
border=
"circle"
/>
</field>
<field
name=
"login"
expand=
"1"
/>
<field
name=
"sessions"
/>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment