X-Git-Url: http://git.cyclocoop.org/?p=burette%2Fbikecoop.git;a=blobdiff_plain;f=bikecoop.py;h=07f8614b83d8ce22e87a738928bd4a428f842838;hp=bc8516b22d55e3c093dc963d122640bbac01d671;hb=cc60058cbe68d271a1ba290e25c827db046fe683;hpb=43a770baa2545e5f76a0c35e655d5c5ee0f12f10 diff --git a/bikecoop.py b/bikecoop.py index bc8516b..07f8614 100644 --- a/bikecoop.py +++ b/bikecoop.py @@ -29,12 +29,14 @@ from datetime import date class Theme(osv.osv): _name = 'bikecoop.partner.theme' _description = 'Themes that could be related to a partner' + _order = 'domain,sequence,name' _columns = { 'code': fields.char('Code', size=8, help='Code of the occupation'), 'name': fields.char('Name', size=128, help='Name of the job or studies', required=True, translate=True), 'domain': fields.selection([('gender', 'Gender'), ('occupation', 'Occupation'), ('volunteer', 'Volunteer')], 'Domain', required=True, size=24), 'active': fields.boolean('Active', help='If check, this object is always available'), + 'sequence': fields.integer('Sequence', help='To order by sequence'), } _defaults = {