1 # -*- coding: utf-8 -*-
2 ##############################################################################
4 # eturecup module for OpenERP, Custom module for Étu'Récup
5 # Copyright (C) 2014-2015 Étu'Récup (<http://www.eturecup.org/>)
7 # This file is a part of eturecup
9 # eturecup is free software: you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation, either version 3 of the License, or
12 # (at your option) any later version.
14 # eturecup is distributed in the hope that it will be useful,
15 # but WITHOUT ANY WARRANTY; without even the implied warranty of
16 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 # GNU General Public License for more details.
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/>.
22 ##############################################################################
24 from openerp
.osv
import orm
25 from openerp
.osv
import fields
28 class Partner(orm
.Model
):
29 _inherit
= 'res.partner'
32 'newsletter': fields
.boolean(
33 'Do you want to receive our monthly newsletter?'),
34 'want_to_be_volunteer': fields
.boolean(
35 'Do you want to receive some informations about volunteer \
37 help='… in company and its activities: bikecoop, events, …'),
41 class Theme(orm
.Model
):
42 _inherit
= 'bikecoop.partner.theme'
45 'type': fields
.selection([('studies', 'Studies')],
47 help='An extra field to categorize themes.'),
51 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: