X-Git-Url: http://git.cyclocoop.org/?p=burette%2Fbikecoop.git;a=blobdiff_plain;f=bikecoop.py;h=a945c8a67cf7074ee3bc6600bdbb0efe67bffe16;hp=91ca5e22049ed021ddaba56fcbe77509f53e65f6;hb=14d224cedfc32e76b2af90fc08c2f79ff20a2c4d;hpb=c4352bd72c71739efed79015fdae1dbab01ed7cc diff --git a/bikecoop.py b/bikecoop.py index 91ca5e2..a945c8a 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 = {