~banking-addons-team/banking-addons/banking-addons-70

« back to all changes in this revision

Viewing changes to account_banking_payment/model/account_payment.py

  • Committer: Holger Brunn
  • Author(s): stephane.bidoul at acsone
  • Date: 2013-10-14 12:25:43 UTC
  • mfrom: (177.2.3 ba-70-missing-transfer-account)
  • Revision ID: hbrunn@therp.nl-20131014122543-ub70023lkg2pbrze
[FIX] handle situation where transfer account is not defined on payment
order mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
241
241
            'debit': _('Direct debit order'),
242
242
            }
243
243
        for order in self.browse(cr, uid, ids, context=context):
 
244
            if not order.mode.transfer_journal_id or not order.mode.transfer_account_id:
 
245
                continue
244
246
            for line in order.line_ids:
245
247
                # basic checks
246
248
                if not line.move_line_id: