~vauxoo/addons-vauxoo/7.0-user_story_fix1-kty

« back to all changes in this revision

Viewing changes to partner_credit_limit/partner.py

  • Committer: moylop260
  • Date: 2012-09-08 02:01:25 UTC
  • Revision ID: moylop260@vauxoo.com-20120908020125-paxzekhwmmex2515
[ADD] [partner_credit_limit] Add extend module partner_credit_limit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/env python
 
2
#-*- coding:utf-8 -*-
 
3
##############################################################################
 
4
#
 
5
#    OpenERP, Open Source Management Solution
 
6
#    Copyright (C) 2004-2009 Tiny SPRL (<http://tiny.be>). All Rights Reserved
 
7
#    d$
 
8
#
 
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.
 
13
#
 
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.
 
18
#
 
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/>.
 
21
#
 
22
##############################################################################
 
23
 
 
24
import time
 
25
import netsvc
 
26
from osv import fields, osv
 
27
from mx import DateTime
 
28
from tools import config
 
29
from tools.translate import _
 
30
 
 
31
class res_partner(osv.osv):
 
32
    _inherit = 'res.partner'
 
33
    _columns = {
 
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'),
 
37
    }
 
38
res_partner()
 
39