[PYTHON] ~no defaults values for date and journal in vendor payments
authorLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 9 Feb 2016 16:04:23 +0000 (17:04 +0100)
committerLudovic CHEVALIER <ludovic.chevalier@heureux-cyclage.org>
Tue, 9 Feb 2016 16:04:23 +0000 (17:04 +0100)
__init__.py
account_voucher.py [new file with mode: 0644]

index 48e8cd7..55b026b 100644 (file)
@@ -21,5 +21,5 @@
 #
 ##############################################################################
 
-
+import account_voucher
 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/account_voucher.py b/account_voucher.py
new file mode 100644 (file)
index 0000000..4ff414b
--- /dev/null
@@ -0,0 +1,36 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    bretzselle module for OpenERP, Customise OpenERP for Bretz'Selle
+#    Copyright (C) 2014 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 account_voucher(orm.Model):
+    _inherit = 'account.voucher'
+
+    _defaults = {
+        'date': False,
+        'journal_id': False,
+    }
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: