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

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

By
Totor
on 4/18/16, 4:25 AM 329 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?

0
Totor
On 4/19/16, 3:53 AM

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

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

 

0

Ankit H Gandhi(AHG)

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

Learning Python..

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

Dear

Inherit that model.

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

You need to update that database.

Cheers,

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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