Odoo Help


ReadOnly field saved with NULL value

zakaria ben
on 1/2/14, 6:08 AM 1,395 views

On CRM opportunity form view, i added readonly="1" for probability field. When i saved, whatever the value of my probability, it's stored with NULL value.

Is it a bug on OpenERP ?



| 3 2 6

Having 8+ years of OpenERP Experience. We are Specialized in OpenERP/CRM Solutions, software development, Web development, E commerce solutions & other open source solutions.

Skype : acespritech

Email : info@acespritech.com

On 1/3/14, 5:34 AM

Hello!Actually Probability field's value is dependant upon stage_id field ,there is an onchange method on stage_id so if you put readonly on probability field than it will not store value when you save record because it's readonly. But there is an option to store value in such kind of situation, i.e you have to override create and write method for crm.lead and assign value in probability field from there.

Acespritech Solutions Pvt. Ltd.
Mail: info@acespritech.com
Skype: acespritech
Blog: acespritechblog.wordpress.com

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

0 follower(s)


Asked: 1/2/14, 6:08 AM
Seen: 1395 times
Last updated: 3/16/15, 8:10 AM