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

Problem with readonly

By
Samba Faye
on 10/24/13, 10:13 AM 566 views

Well, I have issue with the readonly option on a field which I creat like above

<field nam="nam_of_field" readonly="True"/> I fill this field from on_change() of an other one. But when I save my form, the value of my field(the readonly field) is lost. The field is empty. And an empty value is save. What can I do?

can you please post your code along with your question and elaborate in clear?

Abhishek H Menon
on 10/24/13, 10:20 AM

Well, yeah, it's readonly. onchange functions don't store the change in the database, just in the user interface - which disallows changes.

Brett Lehrer
on 10/24/13, 11:35 AM

Use fields.related instead of these it think it may be better than using onchange.

Abhishek H Menon
on 10/25/13, 7:48 AM

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: 10/24/13, 10:13 AM
Seen: 566 times
Last updated: 3/16/15, 8:10 AM