Fix an issue where constraint check control is enabled in edit table dialog. #7164

This commit is contained in:
Anil Sahoo 2024-02-09 16:26:46 +05:30 committed by GitHub
parent d09833744a
commit 9ad223c41c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -67,7 +67,7 @@ export default class CheckConstraintSchema extends BaseUISchema {
},{
id: 'consrc', label: gettext('Check'), type: 'multiline', cell: 'text',
group: gettext('Definition'), mode: ['properties', 'create', 'edit'],
readonly: obj.isReadonly, editable: true, noEmpty: true,
readonly: obj.isReadonly, noEmpty: true, editable: (state) => {return obj.isNew(state);},
},{
id: 'connoinherit', label: gettext('No inherit?'), type: 'switch', cell: 'switch',
group: gettext('Definition'), mode: ['properties', 'create', 'edit'], min_version: 90200,