[FIX] mail: correct inheritance of popoverProps method

Missing a super call, merged the functions together for better
style-adherence to the original code

Part-of: odoo/odoo#116641
This commit is contained in:
Damien Bouvy
2023-05-12 22:59:20 +02:00
committed by Pierre Paridans
parent 56ef4017cd
commit e479f380bf
@@ -65,19 +65,8 @@ export class KanbanMany2OneAvatarUserField extends KanbanMany2OneAvatarField {
* All props are normally passed to the Many2OneField however since
* we add a new one, we need to filter it out.
*/
get m2oFieldProps() {
const props = {
...this.props,
};
delete props.displayAvatarName;
return props;
}
get popoverProps() {
const props = {
...super.popoverProps,
readonly: false,
};
const props = super.popoverProps;
delete props.displayAvatarName;
return props;
}