hi guys , i want to display a part of view (XML ) just if the user is anonymous .
if some one have an idea ,
something like this : <field name="prenom" placeholder="foulen" attrs="{'invisible': [('is_company','=', True)]}"/>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
hi guys , i want to display a part of view (XML ) just if the user is anonymous .
if some one have an idea ,
something like this : <field name="prenom" placeholder="foulen" attrs="{'invisible': [('is_company','=', True)]}"/>
Hi,
you can use groups="portal.group_anonymous"
<div groups="portal.group_anonymous">
part of view (XML )
</div>
thanks man ;)
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
How do I remove a button from the sale.order.form?
Diselesaikan
|
|
6
Sep 17
|
9167 | |
|
|
1
Mar 15
|
6712 | ||
|
|
2
Mar 15
|
10633 | ||
|
view xml, attrs use variable with attribute
Diselesaikan
|
|
1
Mar 24
|
11202 | |
|
|
5
Feb 23
|
30373 |