Hi all there is a readonly field , but i need to add value into that field from onchange. unfortuanatly openerp have no clue
The question has been closed với nguyên nhân: Sao chép bài đăng
bởi3 Câu trả lời
Use functional field for this purpose.
If you use x2m field then please see similar ask.
x2m field currently not used please see below link http://help.openerp.com/question/27955/lines-functional-values-how-to-shows-before-saving-the-record/
This is a duplicate question.
See Readonly fields are not working in onchange for original question.
Hi Sudhir Arya, please see the link http://help.openerp.com/question/27955/lines-functional-values-how-to-shows-before-saving-the-record/
Somehow when a field is set as readonly, you can add/change the value, but it will not be stored in the database, or used in a calculation.
According to this link, it was on purpose and the behaviour won't change.
So If you want to use or store the value of the readonly-field, you have to add another field to the view, and make that field invisible. You can use and store the data from the hidden field to do the calculation or just store it in the database.