[IMP] Add m2m_tags for Select Partne & change default mail subject in send invitation

bzr revid: fka@tinyerp.com-20121003072348-lw76eoym8i3jdqcc
This commit is contained in:
Foram Katharotiya (OpenERP)
2012-10-03 12:53:48 +05:30
parent 70d971c3d7
commit 9f79e73ac8
2 changed files with 3 additions and 3 deletions
@@ -50,8 +50,6 @@ class survey_send_invitation(osv.osv_memory):
_defaults = {
'send_mail': lambda *a: 1,
'send_mail_existing': lambda *a: 1,
'mail_subject': lambda *a: "Invitation",
'mail_subject_existing': lambda *a: "Invitation",
'mail_from': lambda *a: tools.config['email_from']
}
@@ -75,6 +73,8 @@ class survey_send_invitation(osv.osv_memory):
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()) + ''':8080 \n\n Thanks,'''
data['mail_subject'] = "Invitation for " + sur.title
data['mail_subject_existing'] = "Invitation for " + sur.title
return data
def create_report(self, cr, uid, res_ids, report_name=False, file_name=False):
@@ -16,7 +16,7 @@
</header>
<group col="4">
<separator string="Select Partner" colspan="4"/>
<field name="partner_ids" nolabel="1" colspan="4"/>
<field name="partner_ids" nolabel="1" colspan="4" widget="many2many_tags"/>
<separator colspan="4" string="Send Mail for New User"/>
<field name="send_mail" nolabel="1"/>
<field name="mail_subject" colspan="3"/>