3
##############################################################################
5
# OpenERP, Open Source Management Solution
6
# Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
9
# This program is free software: you can redistribute it and/or modify
10
# it under the terms of the GNU General Public License as published by
11
# the Free Software Foundation, either version 3 of the License, or
12
# (at your option) any later version.
14
# This program is distributed in the hope that it will be useful,
15
# but WITHOUT ANY WARRANTY; without even the implied warranty of
16
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17
# GNU General Public License for more details.
19
# You should have received a copy of the GNU General Public License
20
# along with this program. If not, see <http://www.gnu.org/licenses/>.
22
##############################################################################
26
from osv import fields, osv
27
from mx import DateTime
28
from tools import config
29
from tools.translate import _
31
class res_partner(osv.osv):
32
_inherit = 'res.partner'
34
'over_credit':fields.boolean('Allow Over Credit?', required=False),
35
'maturity_over_credit':fields.boolean('Allow Maturity Over Credit?', required=False),
36
'credit_maturity_limit': fields.float(string='Credit Maturity Limit'),