1
# -*- encoding: utf-8 -*-
4
from report import report_sxw
5
from openerp.tools.translate import _
10
from email.MIMEText import MIMEText
11
from email.Encoders import encode_base64
14
class crm_report_profile(report_sxw.rml_parse):
16
Description about crm_report_profile
19
def __init__(self, cr, uid, name, context=None):
21
Initlize a report parser, add custome methods to localcontext
22
@param cr: cursor to database
23
@param user: id of current user
24
@param name: name of the reports it self
25
@param context: context arguments, like lang, time zone
27
super(crm_report_profile, self).__init__(
28
cr, uid, name, context=context)
29
self.localcontext.update({
33
report_sxw.report_sxw(
34
'report.crm.profile.reporting',
36
'addons/crm_profile_reporting/report/crm_profile_report.rml',
37
parser=crm_report_profile