[FIX}GOLEM Activity Queue order should be sequence then older (id asc), thanks Youssef for pointing it

This commit is contained in:
Fabien BOURGEOIS 2018-03-06 15:27:40 +01:00
parent 963bfa7cb1
commit b5e7a52789
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@
'name': 'GOLEM activity queues',
'summary': 'GOLEM activity queues',
'description': ''' GOLEM activity queue management ''',
'version': '10.0.1.1.3',
'version': '10.0.1.1.4',
'category': 'GOLEM',
'author': 'Youssef El Ouahby, Fabien Bourgeois',
'license': 'AGPL-3',

View File

@ -24,7 +24,7 @@ from odoo.exceptions import ValidationError
class GolemActivityQueue(models.Model):
""" GOLEM Activity Queue """
_name = 'golem.activity.queue'
_order = 'sequence asc, id desc'
_order = 'sequence asc, id asc'
_description = 'GOLEM Activity Queue'
_sql_constraints = [('golem_activity_queue_uniq', 'UNIQUE (member_id, activity_id)',
_('This member has already been registered for the queue.'))]