[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:53:35 +01:00
parent d96dc25c47
commit b34917cd6d
+1 -1
View File
@@ -34,7 +34,7 @@
<field name="transient" attrs="{'readonly': [('id', '!=', False)]}" groups="base.group_no_one"/>
</group>
<group>
<field name="state" attrs="{'readonly': [('id', '!=', False)]}" groups="base.group_no_one"/>
<field name="state" readonly="1" groups="base.group_no_one"/>
<field name="modules" groups="base.group_no_one"/>
</group>
</group>