[MODULE][VIEW] ~multiple customization
[burette/velocampus_nantes.git] / velocampus_nantes.py
diff --git a/velocampus_nantes.py b/velocampus_nantes.py
new file mode 100644 (file)
index 0000000..38c221d
--- /dev/null
@@ -0,0 +1,45 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    velocampus_nantes module for OpenERP, Vélocampus Nantes specifities
+#    Copyright (C) 2013-2015 Vélocampus Nantes (<http://www.velocampus.net/>)
+#
+#    This file is a part of velocampus_nantes
+#
+#    velocampus_nantes module is free software: you can redistribute it and/or
+#    modify it under the terms of the GNU General Public License as published
+#    by the Free Software Foundation, either version 3 of the License, or
+#    (at your option) any later version.
+#
+#    velocampus_nantes module is distributed in the hope that it will be
+#    useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General
+#    Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+from openerp.osv import fields, osv
+
+
+class Partner(osv.osv):
+    _inherit = 'res.partner'
+
+    _columns = {
+        'crous': fields.boolean('Logement CROUS?'),
+        'highschool_years': fields.selection([('1', '1'),
+                                              ('2', '2'),
+                                              ('3', '3'),
+                                              ('4', '4'),
+                                              ('5', '5'),
+                                              ('6', '6'),
+                                              ('7', '7'),
+                                              ('8', '8'),
+                                              ('9', '9')], 'Highschool years'),
+        'is_volunteer': fields.boolean('Is volunteer'),
+    }
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: