Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4018 Lượt xem

Friends,

I have a many2one field file_no in form view of Task(Project)

I make it as readonly on a condition that if it has a value..(Means if file_no has a value it become readonly)..

Then i try to save the task.But the file_no field did not saved...!!

Thanks

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Odoo never saves the readonly fields. If a field is readonly and a value is set into it from outside by some means than also it will not save that data into the database. This is the default behaviour of Odoo.

Ảnh đại diện
Huỷ bỏ
Tác giả

Thanks..Then how i set it read only after saving

Tell me your exact purpose please.