From f7a96a9ce19c45e93bd564d1f442095dfd005994 Mon Sep 17 00:00:00 2001 From: Ludovic CHEVALIER Date: Mon, 28 Dec 2015 19:20:08 +0100 Subject: [PATCH] [PY] ~journal code field: 5 char --> 7 char --- account.py | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 account.py diff --git a/account.py b/account.py new file mode 100644 index 0000000..5b5a90c --- /dev/null +++ b/account.py @@ -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 +# () +# +# 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 . +# +############################################################################## + +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: -- 2.20.1