From: Ludovic CHEVALIER Date: Tue, 9 Feb 2016 16:04:23 +0000 (+0100) Subject: [PYTHON] ~no defaults values for date and journal in vendor payments X-Git-Url: http://git.cyclocoop.org/?p=burette%2Fbretzselle.git;a=commitdiff_plain;h=260065176d82e0d97d278b19f971e4325d704ad7 [PYTHON] ~no defaults values for date and journal in vendor payments --- diff --git a/__init__.py b/__init__.py index 48e8cd7..55b026b 100644 --- a/__init__.py +++ b/__init__.py @@ -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 index 0000000..4ff414b --- /dev/null +++ b/account_voucher.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +############################################################################## +# +# bretzselle module for OpenERP, Customise OpenERP for Bretz'Selle +# Copyright (C) 2014 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 account_voucher(orm.Model): + _inherit = 'account.voucher' + + _defaults = { + 'date': False, + 'journal_id': False, + } + +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: