~openerp-commiter/openobject-addons/extra-6.0

« back to all changes in this revision

Viewing changes to proforma_followup/proforma.py

  • Committer: rpa (Open ERP)
  • Date: 2009-02-18 12:54:56 UTC
  • mto: (3561.1.8 trunk-extra-addons)
  • mto: This revision was merged to the branch mainline in revision 3563.
  • Revision ID: rpa@tinyerp.com-20090218125456-q59rp5d2sh223c77
Added new module to manage pro-forma invoices and their payments

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- encoding: utf-8 -*-
 
2
##############################################################################
 
3
#
 
4
#    OpenERP, Open Source Management Solution   
 
5
#    Copyright (C) 2004-2009 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
 
 
26
class proforma_followup_step(osv.osv):
 
27
    _name = 'proforma.followup_step'
 
28
    _columns = {
 
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'),
 
33
    }
 
34
proforma_followup_step()
 
35
 
 
36
class proforma_followup_line(osv.osv):
 
37
    _name = 'proforma.followup.line'
 
38
    _description = 'PRO-Forma Followup Criteria'
 
39
    _columns = {
 
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?'),
 
50
    }
 
51
proforma_followup_line()
 
52
 
 
53
 
 
54
 
 
55
 
 
56
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
 
57