[IMP] improve code

bzr revid: fka@tinyerp.com-20120831110443-55nxhelq1dfl073j
This commit is contained in:
Foram Katharotiya (OpenERP)
2012-08-31 16:34:43 +05:30
parent 38476fa24c
commit 6c56f95e86
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ class idea_idea(osv.osv):
def idea_cancel(self, cr, uid, ids, context={}):
self.write(cr, uid, ids, { 'state': 'cancel' })
self.message_post(cr, uid, ids, body=_('Idea canceled.'), subtype="cancel", context=context)
self.message_post(cr, uid, ids, body=_('Idea canceled.'), subtype="cancelled", context=context)
return True
def idea_open(self, cr, uid, ids, context={}):
+2 -2
View File
@@ -26,8 +26,8 @@
<field name="name">open</field>
<field name="model_ids" eval="[(4,ref('idea.model_idea_idea'))]"/>
</record>
<record id="mail.mail_subtype_cancel" model="mail.message.subtype">
<field name="name">cancel</field>
<record id="mail.mail_subtype_cancelled" model="mail.message.subtype">
<field name="name">cancelled</field>
<field name="model_ids" eval="[(4,ref('idea.model_idea_idea'))]"/>
<field name="default" eval="False"/>
</record>