Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

display view if user is anonymous

By
samir
on 6/19/13, 7:37 AM 812 views

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)]}"/>

1

Borni DHIFI

--Borni DHIFI--
5102
| 6 8 9
Tunis, Tunisia
--Borni DHIFI--

Techno Functional Consultant Odoo(OpenERP) 

http://www.linkedin.com/in/borni

Skype : dhifi.borni

Borni DHIFI
On 6/19/13, 8:35 AM

Hi,

you can use groups="portal.group_anonymous"

<div groups="portal.group_anonymous">

 part of view (XML ) 

</div>

thanks man ;)

samir
on 6/19/13, 12:38 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 6/19/13, 7:37 AM
Seen: 812 times
Last updated: 3/16/15, 8:10 AM