0
votes

lets say I have a char field under osv.osv_memory

I generate a dynamic form (in "dialog" window) via the fields_view_get method containing this field.

During the generation of the dynamic form, how do I set the value of this field so that when the form is displayed it will contain this value (the value itself depends on the type of processing).

default_get works but only on initialization.

I can change attributes of the field such as readonly, string etc... But the value itself need to be able to change.

1

1 Answers

1
votes

If your osv.osv_memory object is opening from osv.osv, then first create a record of osv_memory object and try to open this record in the wizard. you will not need the default_get function now to load the data to the wizard