##############################################################################
#
# velocampus_nantes module for OpenERP, Vélocampus Nantes specifities
-# Copyright (C) 2013-2014 Vélocampus Nantes (<http://www.velocampus.net/>)
+# 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 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.
+# 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/>.
#
##############################################################################
+import velocampus_nantes
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
##############################################################################
#
# velocampus_nantes module for OpenERP, Vélocampus Nantes specifities
-# Copyright (C) 2013-2014 Vélocampus Nantes (<http://www.velocampus.net/>)
+# 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
+# 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.
+# 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/>.
'data/base.xml',
'data/products_categories.xml',
'data/products_products.xml',
+ 'data/bikecoop.xml',
+ 'view/bikecoop.xml',
],
'installable': True,
'auto_install': False,
--- /dev/null
+# -*- 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:
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<openerp>
+ <data>
+ <record id="view_bikecoop_l10n_fr_members_form" model="ir.ui.view">
+ <field name="name">res.partner.form</field>
+ <field name="model">res.partner</field>
+ <field name="inherit_id" ref="bikecoop.view_bikecoop_members_form"/>
+ <field name="arch" type="xml">
+ <xpath expr="//field[@name='nationality_id']" position="replace">
+ <field name="nationality_id" placeholder="France"/>
+ </xpath>
+ <field name="mobile" position="replace"/>
+ <xpath expr="//field[@name='occupation_id']" position="after">
+ <field name="highschool_years" />
+ </xpath>
+ <xpath expr="//label[@string='Want to be volunteer in ...']" position="replace">
+ </xpath>
+ <xpath expr="//field[@name='volunteer_ids']" position="replace">
+ <group>
+ <field name="is_volunteer" string="Do you want to be volunteer?"/>
+ </group>
+ <label for="volunteer_ids" string="Want to be volunteer in …" attrs="{'invisible': [('is_volunteer','=', False)]}"/>
+ <field name="volunteer_ids" attrs="{'invisible': [('is_volunteer','=', False)]}" domain="[('domain','=', 'volunteer')]">
+ <form string="Volunteer activities" version="7.0">
+ <field name="name"/>
+ </form>
+ <tree string="Volunteer activities">
+ <field name="name"/>
+ </tree>
+ </field>
+ </xpath>
+ </field>
+ </record>
+ </data>
+</openerp>