mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
[FIX] move_ids returned by create_move_from_st_line must be a list. if not make it so
This commit is contained in:
@@ -29,6 +29,8 @@ class AccountBankStatement(orm.Model):
|
||||
move_ids = super(AccountBankStatement,self).create_move_from_st_line(cr, uid, st_line_id,
|
||||
company_currency_id,
|
||||
st_line_number, context)
|
||||
if not isinstance(move_ids, (tuple, list)):
|
||||
move_ids = [move_ids]
|
||||
## We receive the move created for the bank statement, we set it to draft
|
||||
if move_ids:
|
||||
move_obj = self.pool.get('account.move')
|
||||
|
||||
Reference in New Issue
Block a user