[FIXED] project_issue: Kanban state is not being reset when one change the state of issue (Maintenance case: 594481)

bzr revid: han@tinyerp.com-20130709063319-87w3rf3b9kl1u056
This commit is contained in:
Hardik Ansodariya 2013-07-09 12:03:19 +05:30
parent 4910b5e654
commit 31c60007a1
1 changed files with 1 additions and 0 deletions

View File

@ -406,6 +406,7 @@ class project_issue(base_stage, osv.osv):
#Update last action date every time the user changes the stage
if 'stage_id' in vals:
vals['date_action_last'] = time.strftime(tools.DEFAULT_SERVER_DATETIME_FORMAT)
vals.update(kanban_state='normal')
state = self.pool.get('project.task.type').browse(cr, uid, vals['stage_id'], context=context).state
for issue in self.browse(cr, uid, ids, context=context):
# Change from draft to not draft EXCEPT cancelled: The issue has been opened -> set the opening date