For the cohort analysis of records, the new cohort view was added in Odoo version 12. The cohort view is used to find out the life cycle of a record over a particular time span. With the cohort view, you can see the churn and retention rate of any object for a particular time.
Defining the cohort view
Getting ready
The cohort view is part of the Odoo enterprise edition so you can not use it with only the community edition. If you are using the enterprise edition, you need to add web_cohort in the manifest file of your module. For our example, we will create a view to see the cohort analysis for tasks.