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

How can define modifiers for some fields from interface?

By
nasim.delete
on 11/6/14, 1:43 AM 1,755 views

Hi

How can define for example: modifiers="{'readonly': [['state', 'not in, ['draft']]]}" for some fields from interface?

Thanks

Cant get you.?

Anand
on 11/6/14, 5:23 AM

can you give more details, what exactly you want to do?

Emipro Technologies Pvt. Ltd.
on 11/6/14, 5:26 AM
1

Sudhir Arya (SA)

--Sudhir Arya (SA)--
10150
| 6 8 8
Ahmedabad, India
--Sudhir Arya (SA)--

Working as an OpenERP/Odoo developer and a Team Leader 

Top 5 Odoo contributor On Stackoverflow

LinkedIn

Blog

Stackoverflow

Sudhir Arya (SA)
On 11/6/14, 5:58 AM

You can define it on field in xml like this:

<field name="your_field" attrs="{'readonly': [['state', 'not in, ['draft']]]}"/>

0
Christophe HANON
On 11/6/14, 7:53 AM

From the interface, you can enter developper mode (upper right corner drop down uder the user name - must be admin, abot odoo, clieck on developper mode) then edit the view - good for testing. The issue with this approach is that when the module is updated your modification will disappear. 

If you want to go further search the documentations for view inheritance.

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

3 follower(s)

Stats

Asked: 11/6/14, 1:43 AM
Seen: 1755 times
Last updated: 3/16/15, 8:10 AM