Odoo Help


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.


Hide value in a function field

on 6/24/13, 3:47 AM 700 views

I have a requirement to create the selection field role : fields.selection[ (1,'January'), (2,'February'), (3,'March'), (4,'April'), (5,'May'), (6,'June'), (7,'July'), (8,'August'), (9,'September'), (10,'October'), (11,'November'), (12,'December')]

Now i want to hide the value January to all my users :-) How to achieve thi


Francesco OpenCode

--Francesco OpenCode--
| 5 7 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
On 6/24/13, 8:58 AM

A solution can be to create a many2one field with selection widget that is in relation with a simple table called ir_month when you put the months. In this class the name field is the month name and ypou must insert a boolean field called hide. If haide is True the month doesn't show because you insert a domain on a field like this:

[('hide', '=', False)]

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)


Asked: 6/24/13, 3:47 AM
Seen: 700 times
Last updated: 3/16/15, 8:10 AM