[FIX] hr: remove the quick create on the many2one_avatar_employee and many2many_avatar_employee widget
In this commit we have removed quick create option from many2one_avatar_employee and many2many_avatar_employee
widget. because of There are too many faulty employees records coming from a
quick Enter press on a list.
Example:
According to my attention when we do quick create then partner is not created.
task-3343117
closes odoo/odoo#124071
X-original-commit: 001b9c8b075d012568f7ea0890ab23b6d46cbed2
Signed-off-by: Kevin Baptiste <kba@odoo.com>
This commit is contained in:
+4
@@ -22,6 +22,10 @@ export const many2ManyTagsAvatarEmployeeField = {
|
||||
...many2ManyTagsAvatarUserField.additionalClasses,
|
||||
"o_field_many2many_avatar_user",
|
||||
],
|
||||
extractProps: (fieldInfo, dynamicInfo) => ({
|
||||
...many2ManyTagsAvatarUserField.extractProps(fieldInfo, dynamicInfo),
|
||||
canQuickCreate: false,
|
||||
}),
|
||||
};
|
||||
|
||||
registry.category("fields").add("many2many_avatar_employee", many2ManyTagsAvatarEmployeeField);
|
||||
|
||||
+4
@@ -21,6 +21,10 @@ export const many2OneAvatarEmployeeField = {
|
||||
...many2OneAvatarUserField.additionalClasses,
|
||||
"o_field_many2one_avatar_user",
|
||||
],
|
||||
extractProps: (fieldInfo, dynamicInfo) => ({
|
||||
...many2OneAvatarUserField.extractProps(fieldInfo, dynamicInfo),
|
||||
canQuickCreate: false,
|
||||
}),
|
||||
};
|
||||
|
||||
registry.category("fields").add("many2one_avatar_employee", many2OneAvatarEmployeeField);
|
||||
|
||||
Reference in New Issue
Block a user