From efe8ee3e5a4313190cc226bbfcfdc1679f28ef96 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Tue, 31 Dec 2013 08:17:01 +0100 Subject: [PATCH] [FIELDS] +welcome_email boolean fiel for res.partner --- __init__.py | 1 + ptitvelo.py | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 ptitvelo.py diff --git a/__init__.py b/__init__.py index 18134c8..12fa579 100644 --- a/__init__.py +++ b/__init__.py @@ -20,5 +20,6 @@ # along with this program. If not, see . # ############################################################################## +import ptitvelo # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/ptitvelo.py b/ptitvelo.py new file mode 100644 index 0000000..a49a297 --- /dev/null +++ b/ptitvelo.py @@ -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 () +# +# 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 . +# +############################################################################## + +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: -- 2.20.1