[FIX] project,project_issue: display order
Task/issues shuld be sorted on descending priority
This commit is contained in:
parent
1e4501076d
commit
968813cc57
|
@ -791,8 +791,8 @@ class task(osv.osv):
|
|||
'company_id': lambda self, cr, uid, ctx=None: self.pool.get('res.company')._company_default_get(cr, uid, 'project.task', context=ctx),
|
||||
'partner_id': lambda self, cr, uid, ctx=None: self._get_default_partner(cr, uid, context=ctx),
|
||||
}
|
||||
_order = "priority, sequence, date_start, name, id"
|
||||
|
||||
_order = "priority desc, sequence, date_start, name, id"
|
||||
|
||||
def _check_recursion(self, cr, uid, ids, context=None):
|
||||
for id in ids:
|
||||
visited_branch = set()
|
||||
|
|
|
@ -44,7 +44,7 @@ class project_issue_version(osv.Model):
|
|||
class project_issue(osv.Model):
|
||||
_name = "project.issue"
|
||||
_description = "Project Issue"
|
||||
_order = "priority, create_date desc"
|
||||
_order = "priority desc, create_date desc"
|
||||
_inherit = ['mail.thread', 'ir.needaction_mixin']
|
||||
|
||||
_mail_post_access = 'read'
|
||||
|
|
Loading…
Reference in New Issue