mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[imp] pep8
This commit is contained in:
@@ -226,18 +226,14 @@ class AccountBankSatement(Model):
|
|||||||
# statement.company_id is a related store=True that for some
|
# statement.company_id is a related store=True that for some
|
||||||
# reason doesn't work in YAML tests. As a workaround, I unwind it
|
# reason doesn't work in YAML tests. As a workaround, I unwind it
|
||||||
# to statement.journal_id.company_id here.
|
# to statement.journal_id.company_id here.
|
||||||
if (
|
if (statement.period_id and
|
||||||
statement.period_id
|
statement.journal_id.company_id.id !=
|
||||||
and statement.journal_id.company_id.id
|
statement.period_id.company_id.id):
|
||||||
!= statement.period_id.company_id.id
|
|
||||||
):
|
|
||||||
return False
|
return False
|
||||||
for line in statement.line_ids:
|
for line in statement.line_ids:
|
||||||
if (
|
if (line.period_id and
|
||||||
line.period_id
|
statement.journal_id.company_id.id
|
||||||
and statement.journal_id.company_id.id
|
!= line.period_id.company_id.id):
|
||||||
!= line.period_id.company_id.id
|
|
||||||
):
|
|
||||||
return False
|
return False
|
||||||
return True
|
return True
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user