[FIELDS] +welcome_email boolean fiel for res.partner
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 31 Dec 2013 07:17:01 +0000 (08:17 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 31 Dec 2013 07:17:01 +0000 (08:17 +0100)
__init__.py
ptitvelo.py [new file with mode: 0644]

index 18134c8..12fa579 100644 (file)
@@ -20,5 +20,6 @@
 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #
 ##############################################################################
+import ptitvelo
 
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/ptitvelo.py b/ptitvelo.py
new file mode 100644 (file)
index 0000000..a49a297
--- /dev/null
@@ -0,0 +1,37 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    ptitvelo module for OpenERP, uN p'Tit véLo dAnS La Tête specificities
+#    Copyright (C) 2012-2014 uN p'Tit véLo dAnS La Tête (<http://www.ptitvelo.net>)
+#
+#    This file is a part of ptitvelo
+#
+#    ptitvelo 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.
+#
+#    ptitvelo 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 osv
+from openerp.osv import fields
+
+class res_parner(osv.osv):
+    _inherit = 'res.partner'
+
+    _columns = {
+        'welcome_email': fields.boolean('I wan\'t to receive the welcome email.'),
+    }
+
+res_parner()
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: