[IMP] Upgrade the translations
[odoo/odoo.git] / addons / account_followup / followup.py
1 # -*- encoding: utf-8 -*-
2 ##############################################################################
3 #
4 #    OpenERP, Open Source Management Solution   
5 #    Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
6 #    $Id$
7 #
8 #    This program is free software: you can redistribute it and/or modify
9 #    it under the terms of the GNU General Public License as published by
10 #    the Free Software Foundation, either version 3 of the License, or
11 #    (at your option) any later version.
12 #
13 #    This program is distributed in the hope that it will be useful,
14 #    but WITHOUT ANY WARRANTY; without even the implied warranty of
15 #    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 #    GNU General Public License for more details.
17 #
18 #    You should have received a copy of the GNU General Public License
19 #    along with this program.  If not, see <http://www.gnu.org/licenses/>.
20 #
21 ##############################################################################
22
23 from osv import fields, osv
24
25 class followup(osv.osv):
26     _name = 'account_followup.followup'
27     _description = 'Follow-Ups'
28     _columns = {
29         'name': fields.char('Name', size=64, required=True),
30         'description': fields.text('Description'),
31         'followup_line': fields.one2many('account_followup.followup.line', 'followup_id', 'Follow-Up'),
32         'company_id': fields.many2one('res.company', 'Company'),
33     }
34 followup()
35
36 class followup_line(osv.osv):
37     _name = 'account_followup.followup.line'
38     _description = 'Follow-Ups Criteria'
39     _columns = {
40         'name': fields.char('Name', size=64, required=True),
41         'sequence': fields.integer('Sequence'),
42         'delay': fields.integer('Days of delay'),
43         'start': fields.selection([('days','Net Days'),('end_of_month','End of Month')], 'Type of Term', size=64, required=True),
44         'followup_id': fields.many2one('account_followup.followup', 'Follow Ups', required=True, ondelete="cascade"),
45         'description': fields.text('Printed Message'),
46         #'prints': fields.one2many('account_followup.followup.print', 'line_id'),
47     }
48 followup_line()
49
50 class account_move_line(osv.osv):
51     _name = 'account.move.line'
52     _inherit = 'account.move.line'
53     _columns = {
54         'followup_line_id': fields.many2one('account_followup.followup.line', 'Follow-up Level'),
55         'followup_date': fields.date('Latest Follow-up'),
56     }
57 account_move_line()
58
59
60 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
61