Skip to content

Commit fc4fa5b

Browse files
committed
refactor(auth_impersonate_user): simplify invisible condition in res_users.xml views
1 parent 9a54aae commit fc4fa5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth_impersonate_user/views/res_users.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<xpath expr="//field[@name='company_id']" position="after">
88
<button
99
name="impersonate_user"
10-
invisible="(can_impersonate_user == False),(can_be_impersonated == False)"
10+
invisible="not can_be_impersonated or not can_impersonate_user"
1111
string="Impersonate"
1212
type="object"
1313
class="oe_highlight"
@@ -24,7 +24,7 @@
2424
<xpath expr="//header" position="inside">
2525
<button
2626
name="impersonate_user"
27-
invisible="(can_impersonate_user == False),(can_be_impersonated == False)"
27+
invisible="not can_be_impersonated or not can_impersonate_user"
2828
string="Impersonate"
2929
type="object"
3030
/>

0 commit comments

Comments
 (0)