1
0
forked from Mapan/odoo17e
odoo17e-kedaikipas58/addons/website_sale_dashboard/models/digest.py
2024-12-10 09:04:09 +07:00

14 lines
475 B
Python

# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import models
class Digest(models.Model):
_inherit = 'digest.digest'
def _compute_kpis_actions(self, company, user):
res = super(Digest, self)._compute_kpis_actions(company, user)
res['kpi_website_sale_total'] = 'website_sale_dashboard.sale_dashboard&menu_id=%s' % self.env.ref('website.menu_website_configuration').id
return res