From: Ludovic CHEVALIER Date: Tue, 9 Feb 2016 16:42:17 +0000 (+0100) Subject: [PYTHON] ~no default value for date in expense X-Git-Url: http://git.cyclocoop.org/data/%27%20.%20mediabox_timestamp%28find_in_path%28%27javascript/%7B%24www_url%7Dadmin/compta/operations/%40%20%27info_etape_suivante_2%27%20=%3E%20%27You%20can%20move%20on%20to%20the%20next%20step.%27%2C%20%27info_exceptions_proxy%27%20=%3E%20%27Exceptions%20for%20the%20proxy%27%2C%20%27info_exportation_base%27%20=%3E%20%27export%20database%20to%20%40archive%40%27%2C-%27info_facilite_suivi_activite%27%20=%3E%20%27To%20simplify%20monitoring%20of%20the%20site/%27s%20editorial;-%20%20activities%2C%20SPIP%20can%20send%20rmail%20notifications%2C%20e.g.%20to%20an%20editors/%7Bplugin_url%20id=%24id%7D?a=commitdiff_plain;h=refs%2Fheads%2Fmaster;p=burette%2Fbretzselle.git [PYTHON] ~no default value for date in expense --- diff --git a/__init__.py b/__init__.py index 9a148f7..15f7cba 100644 --- a/__init__.py +++ b/__init__.py @@ -22,4 +22,5 @@ ############################################################################## import account_voucher +import hr_expense # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: diff --git a/hr_expense.py b/hr_expense.py new file mode 100644 index 0000000..a8f5531 --- /dev/null +++ b/hr_expense.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# bretzselle module for OpenERP, Customise OpenERP for Bretz'Selle +# Copyright (C) 2014-2016 Bretz'Selle () +# +# This file is a part of bretzselle +# +# bretzselle 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. +# +# bretzselle 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 orm +from openerp.osv import fields + + +class hr_expense_expense(orm.Model): + _inherit = 'hr.expense.expense' + + _defaults = { + 'date': False, + } + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: