flectra/addons/base_sparse_field/views/views.xml

33 lines
1.3 KiB
XML
Raw Permalink Normal View History

<?xml version="1.0" encoding="utf-8"?>
2018-01-16 11:34:37 +01:00
<flectra>
<data>
<!-- Add 'serialization_field_id' in ir.model form view -->
<record model="ir.ui.view" id="model_form_view">
<field name="model">ir.model</field>
<field name="inherit_id" ref="base.view_model_form"/>
<field name="arch" type="xml">
<field name="related" position="before">
<field name="serialization_field_id"
domain="[('ttype','=','serialized'), ('model_id','=',parent.model)]"
attrs="{'readonly': [('state','=','base')]}"/>
</field>
</field>
</record>
<!-- Add 'serialization_field_id' in ir.model.fields form view -->
<record model="ir.ui.view" id="field_form_view">
<field name="model">ir.model.fields</field>
<field name="inherit_id" ref="base.view_model_fields_form"/>
<field name="arch" type="xml">
<field name="related" position="before">
<field name="serialization_field_id"
domain="[('ttype','=','serialized'), ('model_id','=',model_id)]"
attrs="{'readonly': [('state','=','base')]}"/>
</field>
</field>
</record>
</data>
2018-01-16 11:34:37 +01:00
</flectra>