[IMP] change the subtype in project issue

bzr revid: rma@tinyerp.com-20121120104556-hta7g7z27aa9jgl9
This commit is contained in:
Randhir Mayatra (OpenERP) 2012-11-20 16:15:56 +05:30
parent b29f32cd5d
commit cf50a968b6
2 changed files with 4 additions and 11 deletions

View File

@ -1105,16 +1105,16 @@ class task(base_stage, osv.osv):
def set_kanban_state_blocked(self, cr, uid, ids, context=None):
self.write(cr, uid, ids, {'kanban_state': 'blocked'}, context=context)
self.case_block_send_note(cr, uid, ids, context=context)
return False
def set_kanban_state_normal(self, cr, uid, ids, context=None):
self.write(cr, uid, ids, {'kanban_state': 'normal'}, context=context)
self.case_block_send_note(cr, uid, ids, context=context)
self.case_open_send_note(cr, uid, ids, context=context)
return True
def set_kanban_state_done(self, cr, uid, ids, context=None):
self.write(cr, uid, ids, {'kanban_state': 'done'}, context=context)
self.case_open_send_note(cr, uid, ids, context=context)
return True
def _store_history(self, cr, uid, ids, context=None):

View File

@ -60,15 +60,7 @@ Access all issues from the top Project menu, and access the issues of a specific
<field name="name">Stage Changed</field>
<field name="res_model">project.issue</field>
</record>
<record id="mail.mt_issue_started" model="mail.message.subtype">
<field name="name">Issue Started</field>
<field name="res_model">project.issue</field>
</record>
<record id="mail.mt_issue_blocked" model="mail.message.subtype">
<field name="name">Issue Blocked</field>
<field name="res_model">project.issue</field>
</record>
<record id="mail.mt_prj_issue_new" model="mail.message.subtype">
<field name="name">Issue Created</field>
<field name="res_model">project.project</field>
@ -84,6 +76,7 @@ Access all issues from the top Project menu, and access the issues of a specific
<record id="mail.mt_prj_issue_blocked" model="mail.message.subtype">
<field name="name">Issue Blocked</field>
<field name="res_model">project.project</field>
<field name="default" eval="False"/>
</record>
</data>
</openerp>