[IMP]:improved config parameter while sending invitation

bzr revid: apa@tinyerp.com-20121018065640-chr285k3tcnk2bho
This commit is contained in:
Amit Patel 2012-10-18 12:26:40 +05:30
parent 94a92163c5
commit f1a881236b
1 changed files with 1 additions and 1 deletions

View File

@ -74,7 +74,7 @@ class survey_send_invitation(osv.osv_memory):
raise osv.except_osv(_('Warning!'), _('%sSurvey is not in open state') % msg)
data['mail'] = '''Hello %(name)s, \n\n We are inviting you for following survey. \
\n ''' + name + '''\n Your login ID: %(login)s, Your password: %(passwd)s
\n link :- http://'''+ str(socket.gethostname()) + ''':8069 \n\n Thanks,'''
\n '''+ self.pool.get('ir.config_parameter').get_param(cr, uid, 'web.base.url', default='http://localhost:8069', context=context) + '''\n\n Thanks,'''
return data
def create_report(self, cr, uid, res_ids, report_name=False, file_name=False):