Form widget for fields.serialized
type, providing a friendly JSON editor based on
Jos de Jong JSON editor.
- install the module in your project
- define
serialized
widget for your field on view form:
<field name="arch" type="xml">
<form string="Foo">
...
<field name="bar" widget="serialized" />
...
</form>
</field>
View mode
WYSIWYG edit mode
Code edit mode
This widget depend on web unleashed module, helping on managing the initialization of views and widgets on OpenERP.
Odoo 8.0 doesn't support fields.serialized
anymore, you have to install the server wide module base_field_serialized
from OCA server-tools repository.
Note:
It's not a hard dependencies and you can refactor the code and remove this dependencies by change the way the widget is initialized if you really don't need web unleashed (but you may have a look at features provided by unleashed first ;)).