[PYTHON] ~no default value for date in expense master
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 9 Feb 2016 16:42:17 +0000 (17:42 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 9 Feb 2016 16:42:17 +0000 (17:42 +0100)
__init__.py
hr_expense.py [new file with mode: 0644]

index 9a148f7..15f7cba 100644 (file)
@@ -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 (file)
index 0000000..a8f5531
--- /dev/null
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    bretzselle module for OpenERP, Customise OpenERP for Bretz'Selle
+#    Copyright (C) 2014-2016 Bretz'Selle (<http://bretzselle.org>)
+#
+#    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 <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+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: