19 lines
528 B
Python
19 lines
528 B
Python
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
|
# this repository contains the full copyright notices and license terms.
|
|
from trytond.pool import PoolMeta
|
|
|
|
|
|
class CRMChart(metaclass=PoolMeta):
|
|
__name__ = "crm.opportunity"
|
|
|
|
@classmethod
|
|
def report_opportunity_by_agent(cls, args):
|
|
# Dash Report
|
|
value = cls._get_check_rooms('departure')
|
|
today = date.today()
|
|
res = {
|
|
'value': value,
|
|
'header_meta': str(today),
|
|
}
|
|
return res
|