修改field错误问题
This commit is contained in:
@@ -83,12 +83,8 @@ patch(FormStatusIndicator.prototype, 'jikimo_frontend.FormStatusIndicator', {
|
|||||||
);
|
);
|
||||||
patch(Field.prototype, 'jikimo_frontend.Field', {
|
patch(Field.prototype, 'jikimo_frontend.Field', {
|
||||||
setup() {
|
setup() {
|
||||||
this.FieldComponent = this.props.fieldInfo.FieldComponent;
|
|
||||||
if (!this.FieldComponent) {
|
|
||||||
const fieldType = this.props.record.fields[this.props.name].type;
|
|
||||||
this.FieldComponent = getFieldClassFromRegistry(fieldType, this.props.type);
|
|
||||||
}
|
|
||||||
owl.onMounted(this.setRequired);
|
owl.onMounted(this.setRequired);
|
||||||
|
return this._super(...arguments);
|
||||||
},
|
},
|
||||||
setRequired() {
|
setRequired() {
|
||||||
const id = this.props.id
|
const id = this.props.id
|
||||||
|
|||||||
Reference in New Issue
Block a user