[IMP] mail: convert activity LegacyComponent to Component

part of task-2783065

closes odoo/odoo#102336

Related: odoo/enterprise#32360
Signed-off-by: Louis Wicket (wil) <wil@odoo.com>
This commit is contained in:
Didier (did)
2022-10-06 15:57:55 +02:00
parent c37c16c95d
commit 85bd7c5069
2 changed files with 3 additions and 8 deletions
@@ -1,20 +1,19 @@
/** @odoo-module **/
import { useComponentToModel } from '@mail/component_hooks/use_component_to_model';
import { useRefToModel } from '@mail/component_hooks/use_ref_to_model';
import { registerMessagingComponent } from '@mail/utils/messaging_component';
import Popover from "web.Popover";
import { LegacyComponent } from "@web/legacy/legacy_component";
export class Activity extends LegacyComponent {
const { Component } = owl;
export class Activity extends Component {
/**
* @override
*/
setup() {
super.setup();
useComponentToModel({ fieldName: 'component' });
useRefToModel({ fieldName: 'markDoneButtonRef', refName: 'markDoneButton', });
}
@@ -101,10 +101,6 @@ registerModel({
},
inverse: 'activityViewOwner',
}),
/**
* States the OWL component of this activity view.
*/
component: attr(),
/**
* Compute the label for "when" the activity is due.
*/