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

How to save data in readonly field in openerp?

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

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