Odoo Help


How to save data in readonly field in openerp?

Mohammed Khamis
on 6/30/15, 3:11 AM 1,564 views

I am trying to enter value in read only field , it is value changed no problem but when I save date it's value not changed . 

How can I make it?

By default you're not allowed to save data in readonly fields, that is the whole purpose of the field.

on 6/30/15, 3:31 AM

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
| 6 6 8
Gandhinagar, India
--Serpent Consulting Services Pvt. Ltd.--

Serpent Consulting Services Pvt. Ltd. Your Odoo/OpenERP Solution, just an email away!

Serpent Consulting Services Pvt. Ltd.
On 7/2/15, 6:11 AM


By design, the readonly field's value will not be sent out to the server from the client.

If your readonly field is functional field, its value will be automatically stored on screen. If its storable function field, you must make sure to write the right method to calc its value.

If your fieldis not functional, you should work around by onchange and set one invisible field to hold the value of the readonly field. Or, use write well.


Guillaume Seran
On 6/30/15, 3:35 AM

Hi,   maybe with using a functional field and set store=True in field option!

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: 6/30/15, 3:11 AM
Seen: 1564 times
Last updated: 7/2/15, 6:11 AM