diff --git a/addons/mail/static/src/components/follower_subtype/follower_subtype.js b/addons/mail/static/src/components/follower_subtype/follower_subtype.js index ceace87c04d..e33eb5286f8 100644 --- a/addons/mail/static/src/components/follower_subtype/follower_subtype.js +++ b/addons/mail/static/src/components/follower_subtype/follower_subtype.js @@ -24,6 +24,13 @@ export class FollowerSubtype extends Component { return this.messaging && this.messaging.models['FollowerSubtype'].get(this.props.followerSubtypeLocalId); } + /** + * @returns {FollowerSubtypeView} + */ + get followerSubtypeView() { + return this.messaging && this.messaging.models['FollowerSubtypeView'].get(this.props.localId); + } + //-------------------------------------------------------------------------- // Handlers //-------------------------------------------------------------------------- @@ -48,6 +55,7 @@ Object.assign(FollowerSubtype, { props: { followerLocalId: String, followerSubtypeLocalId: String, + localId: String, }, template: 'mail.FollowerSubtype', }); diff --git a/addons/mail/static/src/components/follower_subtype/follower_subtype.xml b/addons/mail/static/src/components/follower_subtype/follower_subtype.xml index e7056a163c0..8373ab19a52 100644 --- a/addons/mail/static/src/components/follower_subtype/follower_subtype.xml +++ b/addons/mail/static/src/components/follower_subtype/follower_subtype.xml @@ -2,8 +2,8 @@ - -
+ +