Explanation about widget="selection" [Closed]
The Question has been closedby
I need to know what is the actual scenario with widget option in OpenERP 7. is it works as readonly field when we use it in form views ?
i used it in my one of form.when i save records in form, that widget values are not saved.
<field name="job_position" placeholder="Finance Manager" widget="selection" />
widget="selection" means it will show all the records of position(many2one) in the selection box. It means if you do not want any user to edit/modify it's record, widget="selection" is useful.
Regarding your issue, issue is due to placeholder attribute, that you used. Place holder will display that value in selection box which may not store in your many2one table and that's why while saving the record, value disappears. Try by removing placeholder over there. If you want any value by default in selection , use _defaults attribute in class.
Thanks, Priyesh Solanki
About This Community
|Asked: 4/17/13, 6:44 AM|
|Seen: 6080 times|
|Last updated: 3/16/15, 8:10 AM|