[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:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user