~banking-addons-team/banking-addons/github-7.0

« back to all changes in this revision

Viewing changes to account_banking_payment_export/model/payment_mode.py

  • Committer: Stefan Rijnhart
  • Author(s): unknown
  • Date: 2014-06-25 09:19:35 UTC
  • mfrom: (225.1.23)
  • Revision ID: git-v1:7f93d703e87a5254b11a9900b0f0b35b49ec522c
1) Add 4 new modules to handle payment mode and bank accounts:
    - account_payment_partner
    - account_payment_sale
    - account_payment_sale_stock
    - account_payment_purchase

2) Filter the selection of invoices per payment mode.
    Add active field on payment.mode and payment.mode.type.
    Add menu entry for Payment Types.

3) Small code clean-up in the SEPA modules (views, 'state' field on SEPA file objects)

4) Code enhancement in the file account_banking_payment/model/account_payment.py (PEP-8, _prepare_* functions, support for payment lines with move_line_id = False)

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
            'type', 'payment_order_type', readonly=True, type='selection',
54
54
            selection=[('payment', 'Payment'), ('debit', 'Direct debit')],
55
55
            string="Payment Order Type"),
 
56
        'active': fields.boolean('Active'),
 
57
        }
 
58
 
 
59
    _defaults = {
 
60
        'active': True,
56
61
        }