X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=blobdiff_plain;f=bikecoop.py;fp=bikecoop.py;h=f632dfcb9fd13ea5040966d5aa40d622b564f20b;hb=60c8fa26dcfa6e38c6dada55cf629d72c79d61f9;hp=63016b8875b451cf073ceba1dde94b67351a1244;hpb=95c0b0206bddcc815e1a61c6feb12abe04b5a111;p=burette%2Fbikecoop.git diff --git a/bikecoop.py b/bikecoop.py index 63016b8..f632dfc 100644 --- a/bikecoop.py +++ b/bikecoop.py @@ -8,7 +8,7 @@ class Theme(osv.osv): _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.char('Domain', size=64, help='Domain for filtering results'), + 'domain': fields.selection([('sex', 'Sex'), ('occupation', 'Occupation'), ('volunteer', 'Volunteer')], 'Domain', required=True, size=24), 'active': fields.boolean('Active', help='If check, this object is always available'), } @@ -27,6 +27,7 @@ class Partner(osv.osv): 'nationality_id': fields.many2one('res.country', 'Nationality', help='Partner\'s nationality if he is a person'), 'occupation_id': fields.many2one('bikecoop.partner.theme', 'Occupation', help='Main occupation of this partner'), 'volunteer_ids': fields.many2many('bikecoop.partner.theme', 'res_partner_bikecoop_theme_rel', 'partner_id', 'theme_id', 'Want to be volunteer?', help='What kind of volunteer activities you want to do with us?'), + 'sex_id': fields.many2one('bikecoop.partner.theme', 'Sex'), } Partner()