Odoo Help

0

How can define modifiers for some fields from interface?

By
nasim.delete
on 11/6/14, 1:43 AM 3,334 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 (ERP Harbor Consulting Services)

--Sudhir Arya (ERP Harbor Consulting Services)--
11456
| 6 8 8
Ahmedabad, India
--Sudhir Arya (ERP Harbor Consulting Services)--

• Co-Founder & Co-Owner at ERP Harbor Consulting Services

• ERP Consultant / ERP Customization / TechnoFunctional Expert

• Sound knowledge in Python, Odoo (Open ERP), XML, PostgreSQL

• Domain knowledge of Sale Management, Purchase Management, Warehouse Management, Manufacturing, Multi Company Configuration & Management, HR Management, Medical Management, Construction Management, Education Management, Point of Sale, Third Party Integrations

• Positive attitude and quick Learner

• Good analytical skill, quick bug and issue tracing and find the solution

• Good knowledge and experience in payment gateway integration with Odoo

• Ready to accept new challenges

• Active Memeber On Stackoverflow 

LinkedIn

Blog

Stackoverflow

Sudhir Arya
ERP Harbor Consulting Services
skype: 
sudhir@erpharbor.com 
Sudhir Arya (ERP Harbor Consulting Services)
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.

About This Community

This platform 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.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)

Stats

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