mirror of
https://github.com/OCA/bank-statement-import.git
synced 2025-01-20 12:37:43 +02:00
[IMP] pass account_period_prefer_normal
This commit is contained in:
@@ -354,7 +354,9 @@ class AccountBankStatementImport(models.TransientModel):
|
||||
# do this now
|
||||
try:
|
||||
stmt_vals['period_id'] =\
|
||||
self.env['account.period'].find(dt=stmt_vals['date']).id
|
||||
self.env['account.period']\
|
||||
.with_context(account_period_prefer_normal=True)\
|
||||
.find(dt=stmt_vals['date']).id
|
||||
except RedirectWarning:
|
||||
# if there's no period for the date, ignore resulting exception
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user