1
# -*- encoding: utf-8 -*-
2
##############################################################################
4
# OpenERP, Open Source Management Solution
5
# Copyright (C) 2004-2009 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
26
class proforma_followup_step(osv.osv):
27
_name = 'proforma.followup_step'
29
'name': fields.char('Name', size=64, required=True),
30
'description': fields.text('Description'),
31
'proforma_line': fields.one2many('proforma.followup.line', 'proforma_id', 'Proforma Follow-Up Line'),
32
'company_id': fields.many2one('res.company', 'Company'),
34
proforma_followup_step()
36
class proforma_followup_line(osv.osv):
37
_name = 'proforma.followup.line'
38
_description = 'PRO-Forma Followup Criteria'
40
'name': fields.char('Name', size=64, required=True),
41
'sequence': fields.integer('Sequence'),
42
'subject': fields.char('Subject', size=64),
43
'email_body': fields.text('E-mail Body' , translate=True),
44
'days': fields.integer('Days of delay'),
45
'proforma_id': fields.many2one('proforma.followup_step', 'Proforma step', required=True, ondelete="cascade"),
46
'function': fields.text('Function to call'),
47
'send_email': fields.boolean('Send E-mail?'),
48
'call_function': fields.boolean('Call function?'),
49
'cancel_invoice': fields.boolean('Cancel Invoice?'),
51
proforma_followup_line()
56
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: