[FIX] base: field 'Type' readonly

The field 'Type' should always be readonly since:
- it must not be changed for standard models
- its value must be 'Custom Object' for a custom model

opw-706130
This commit is contained in:
Nicolas Martinelli
2017-02-01 14:44:41 +01:00
parent b836e00d70
commit 02cfb7be83
+1 -1
View File
@@ -35,7 +35,7 @@
<field name="transient" attrs="{'readonly': [('id', '!=', False)]}"/>
</group>
<group>
<field name="state" attrs="{'readonly': [('id', '!=', False)]}"/>
<field name="state" readonly="1"/>
<field name="modules"/>
</group>
</group>