~therp-nl/banking-addons/ba70-aggregate_payment

« back to all changes in this revision

Viewing changes to account_banking_aggregate_payment/model/payment_mode.py

  • Committer: Stefan Rijnhart
  • Date: 2013-08-02 16:54:06 UTC
  • Revision ID: stefan@therp.nl-20130802165406-ahzr70wl1cpqp0ut
[ADD] Version 6.1 of the aggregate payment module

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*- coding: utf-8 -*-
 
2
##############################################################################
 
3
#
 
4
#    OpenERP, Open Source Management Solution
 
5
#    This module copyright (C) 2013 Therp BV (<http://therp.nl>).
 
6
#
 
7
#    This program is free software: you can redistribute it and/or modify
 
8
#    it under the terms of the GNU Affero General Public License as
 
9
#    published by the Free Software Foundation, either version 3 of the
 
10
#    License, or (at your option) any later version.
 
11
#
 
12
#    This program is distributed in the hope that it will be useful,
 
13
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
#    GNU Affero General Public License for more details.
 
16
#
 
17
#    You should have received a copy of the GNU Affero General Public License
 
18
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
19
#
 
20
##############################################################################
 
21
 
 
22
from openerp.osv import orm, fields
 
23
 
 
24
 
 
25
class payment_mode(orm.Model):
 
26
    _inherit = "payment.mode"
 
27
    _columns = {
 
28
        'aggregate_partner_id': fields.many2one(
 
29
            'res.partner', 'Aggregate payment beneficiary',
 
30
            help="The single partner on the chained payment order",
 
31
            ),
 
32
        'chained_mode_id': fields.many2one(
 
33
            'payment.mode', 'Chained payment mode',
 
34
            help="The payment type of the chained payment order"),
 
35
        }