1 # -*- encoding: utf-8 -*-
2 ##############################################################################
4 # OpenERP, Open Source Management Solution
5 # Copyright (C) 2004-2008 Tiny SPRL (<http://tiny.be>). All Rights Reserved
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.
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.
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/>.
21 ##############################################################################
23 from osv import fields, osv
25 class followup(osv.osv):
26 _name = 'account_followup.followup'
27 _description = 'Follow-Ups'
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'),
36 class followup_line(osv.osv):
37 _name = 'account_followup.followup.line'
38 _description = 'Follow-Ups Criteria'
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'),
50 class account_move_line(osv.osv):
51 _name = 'account.move.line'
52 _inherit = 'account.move.line'
54 'followup_line_id': fields.many2one('account_followup.followup.line', 'Follow-up Level'),
55 'followup_date': fields.date('Latest Follow-up'),
60 # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: