Odoo Help

0

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

By
Totor
on 4/18/16, 4:25 AM 563 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)--
1111
| 5 4 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.

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

1 follower(s)

Stats

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