mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[FIX] handle situation where transfer account is not defined on payment order mode
This commit is contained in:
@@ -284,6 +284,8 @@ class payment_order(orm.Model):
|
||||
'debit': _('Direct debit order'),
|
||||
}
|
||||
for order in self.browse(cr, uid, ids, context=context):
|
||||
if not order.mode.transfer_journal_id or not order.mode.transfer_account_id:
|
||||
continue
|
||||
for line in order.line_ids:
|
||||
# basic checks
|
||||
if not line.move_line_id:
|
||||
|
||||
Reference in New Issue
Block a user