From: Ludovic CHEVALIER Date: Mon, 28 Dec 2015 18:20:08 +0000 (+0100) Subject: [PY] ~journal code field: 5 char --> 7 char X-Git-Url: https://git.cyclocoop.org/?p=burette%2Fetudesetchantiersidf.git;a=commitdiff_plain;h=f7a96a9ce19c45e93bd564d1f442095dfd005994 [PY] ~journal code field: 5 char --> 7 char --- 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: