Skip to Content
मेन्यू
This question has been flagged
4777 Views

I generate dynamic form through the fields_view_get method.

I set the fields['arch'] with the form xml content.

The displays form OK, but I would like to give default value to:

  <field context=\"{'some_value':self}\" name='some_value' />

This (some_value) is a char field in osv.osv_memory

If I do this (after setting fields['arch']) to set default value:

result['fields']['some_value']={'string':'Some Value Field','type':'char','required':False,'default':'blah'}

...this doesn't work

Thanks for any suggestions.

Avatar
Discard