After inheriting mail.activity for my model, I want to create a new notification in the top-right badge when someone creates new record in my model.
I know I need to use self.env['mail.activity'] to create new activity.
But I don't know how to get "res_model_id"?
And when I create it with random res_model_id number, the activity is mark as done, and does not show on the badge notification. How to create a new NOT_DONE activity?
Thank you.