[MODULE][VIEW] ~multiple customization
[burette/velocampus_nantes.git] / velocampus_nantes.py
1 # -*- coding: utf-8 -*-
2 ##############################################################################
3 #
4 # velocampus_nantes module for OpenERP, Vélocampus Nantes specifities
5 # Copyright (C) 2013-2015 Vélocampus Nantes (<http://www.velocampus.net/>)
6 #
7 # This file is a part of velocampus_nantes
8 #
9 # velocampus_nantes module is free software: you can redistribute it and/or
10 # modify it under the terms of the GNU General Public License as published
11 # by the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
13 #
14 # velocampus_nantes module is distributed in the hope that it will be
15 # useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
17 # Public License for more details.
18 #
19 # You should have received a copy of the GNU General Public License
20 # along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #
22 ##############################################################################
23
24 from openerp.osv import fields, osv
25
26
27 class Partner(osv.osv):
28 _inherit = 'res.partner'
29
30 _columns = {
31 'crous': fields.boolean('Logement CROUS?'),
32 'highschool_years': fields.selection([('1', '1'),
33 ('2', '2'),
34 ('3', '3'),
35 ('4', '4'),
36 ('5', '5'),
37 ('6', '6'),
38 ('7', '7'),
39 ('8', '8'),
40 ('9', '9')], 'Highschool years'),
41 'is_volunteer': fields.boolean('Is volunteer'),
42 }
43
44
45 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: