Odoo Help


[9.0] How to remove the readonly from a field ?

on 4/18/16, 4:25 AM 392 views

Hi, I add a column (field) in my sale order line.

But when I save the quotation, the value of the column isn't saved in the database.

Someone tells me it comes from the readonly, I try this but it doesn't work :

stocking = fields.Char(string='Stocking',help="Legend",readonly=False)

Thanks in advance?

On 4/19/16, 3:53 AM

In the view, just have to remove the "readonly=True" from

<field name="stocking" readonly=True/>



Ankit H Gandhi(AHG)

--Ankit H Gandhi(AHG)--
Ankit H Gandhi(AHG)
| 5 3 6
Rajkot, India
--Ankit H Gandhi(AHG)--

Learning Python..

Ankit H Gandhi(AHG)
On 4/19/16, 10:30 AM


Inherit that model.

Again redefine that field with change the attribute of read only is false.

You need to update that database.


Ankit H Gandhi.

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


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

1 follower(s)


Asked: 4/18/16, 4:25 AM
Seen: 392 times
Last updated: 4/19/16, 10:30 AM