Odoo Help

0

How to save data in readonly field in openerp?

By
Mohammed Khamis
on 6/30/15, 3:11 AM 1,250 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.

Yenthe
on 6/30/15, 3:31 AM
0

Serpent Consulting Services Pvt. Ltd.

--Serpent Consulting Services Pvt. Ltd.--
4565
| 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

Mohammed,

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.

Thanks.

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

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