mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[fix] copy the context before modifying it: safer upstream
This commit is contained in:
@@ -216,8 +216,9 @@ class AccountBankSatement(Model):
|
|||||||
if context is None:
|
if context is None:
|
||||||
context = {}
|
context = {}
|
||||||
period_obj = self.pool.get('account.period')
|
period_obj = self.pool.get('account.period')
|
||||||
context['account_period_prefer_normal'] = True
|
local_context = context.copy()
|
||||||
periods = period_obj.find(cr, uid, dt=date, context=context)
|
local_context['account_period_prefer_normal'] = True
|
||||||
|
periods = period_obj.find(cr, uid, dt=date, context=local_context)
|
||||||
return periods and periods[0] or False
|
return periods and periods[0] or False
|
||||||
|
|
||||||
def _check_company_id(self, cr, uid, ids, context=None):
|
def _check_company_id(self, cr, uid, ids, context=None):
|
||||||
|
|||||||
Reference in New Issue
Block a user