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/?p=burette%2Fbretzselle.git;a=commitdiff_plain;h=e88ef2a7d727dde797bd3d20856e2b1b0d91253d [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: