[PY] ~journal code field: 5 char --> 7 char
authorLudovic CHEVALIER <ludovic@beurresarrasin.net>
Mon, 28 Dec 2015 18:20:08 +0000 (19:20 +0100)
committerLudovic CHEVALIER <ludovic@beurresarrasin.net>
Mon, 28 Dec 2015 18:20:08 +0000 (19:20 +0100)
account.py [new file with mode: 0644]

diff --git a/account.py b/account.py
new file mode 100644 (file)
index 0000000..5b5a90c
--- /dev/null
@@ -0,0 +1,39 @@
+# -*- coding: utf-8 -*-
+##############################################################################
+#
+#    etudesetchantiersidf module for OpenERP, Custom module for Étude et
+#    Chantiers île-de-France
+#    Copyright (C) 2014-2015 etudesetchantiersidf
+#    (<http://etudesetchantiersiledefrance.unarec.org/>)
+#
+#    This file is a part of etudesetchantiersidf
+#
+#    etudesetchantiersidf 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.
+#
+#    etudesetchantiersidf 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_journal(osv.osv):
+    _inherit = 'account.journal'
+
+    _columns = {
+        'code': fields.char('Code', size=7, required=True, help="The code will be displayed on reports."),
+    }
+
+
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: