[IMP] change the subtype in project issue
bzr revid: rma@tinyerp.com-20121120104556-hta7g7z27aa9jgl9
This commit is contained in:
parent
b29f32cd5d
commit
cf50a968b6
|
@ -1105,16 +1105,16 @@ class task(base_stage, osv.osv):
|
||||||
|
|
||||||
def set_kanban_state_blocked(self, cr, uid, ids, context=None):
|
def set_kanban_state_blocked(self, cr, uid, ids, context=None):
|
||||||
self.write(cr, uid, ids, {'kanban_state': 'blocked'}, context=context)
|
self.write(cr, uid, ids, {'kanban_state': 'blocked'}, context=context)
|
||||||
|
self.case_block_send_note(cr, uid, ids, context=context)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def set_kanban_state_normal(self, cr, uid, ids, context=None):
|
def set_kanban_state_normal(self, cr, uid, ids, context=None):
|
||||||
self.write(cr, uid, ids, {'kanban_state': 'normal'}, context=context)
|
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
|
return True
|
||||||
|
|
||||||
def set_kanban_state_done(self, cr, uid, ids, context=None):
|
def set_kanban_state_done(self, cr, uid, ids, context=None):
|
||||||
self.write(cr, uid, ids, {'kanban_state': 'done'}, context=context)
|
self.write(cr, uid, ids, {'kanban_state': 'done'}, context=context)
|
||||||
self.case_open_send_note(cr, uid, ids, context=context)
|
|
||||||
return True
|
return True
|
||||||
|
|
||||||
def _store_history(self, cr, uid, ids, context=None):
|
def _store_history(self, cr, uid, ids, context=None):
|
||||||
|
|
|
@ -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="name">Stage Changed</field>
|
||||||
<field name="res_model">project.issue</field>
|
<field name="res_model">project.issue</field>
|
||||||
</record>
|
</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">
|
<record id="mail.mt_prj_issue_new" model="mail.message.subtype">
|
||||||
<field name="name">Issue Created</field>
|
<field name="name">Issue Created</field>
|
||||||
<field name="res_model">project.project</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">
|
<record id="mail.mt_prj_issue_blocked" model="mail.message.subtype">
|
||||||
<field name="name">Issue Blocked</field>
|
<field name="name">Issue Blocked</field>
|
||||||
<field name="res_model">project.project</field>
|
<field name="res_model">project.project</field>
|
||||||
|
<field name="default" eval="False"/>
|
||||||
</record>
|
</record>
|
||||||
</data>
|
</data>
|
||||||
</openerp>
|
</openerp>
|
||||||
|
|
Loading…
Reference in New Issue