Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
Module: Website
Entity: digest.digest
Compute Method: _compute_kpi_website_visitors_count_value
| Inputs | Method | Outputs |
|---|---|---|
|
+ """ Compute the aggregated unique visitor of the websites company. + Note that this computation relies on website_visitor which may create multiple visitor for the same user + (indeed the user is not always identified). + """ + self._raise_if_not_member_of('website.group_website_restricted_editor') + value_per_company = self._calculate_value_per_company(self._calculate_website_visitor_count) + for digest in self: + company = digest.company_id or self.env.company + digest.kpi_website_visitor_count_value = value_per_company.get(company, 0) |
|
