[MIG]FIX PY FORMATTING
parent
83db264e3f
commit
8fbcd2dc95
|
@ -66,8 +66,8 @@ class BankAccRecStatement(models.Model):
|
||||||
statement_line_obj = self.env['bank.acc.rec.statement.line']
|
statement_line_obj = self.env['bank.acc.rec.statement.line']
|
||||||
self.check_group() # Check if user is allowed to perform the action
|
self.check_group() # Check if user is allowed to perform the action
|
||||||
for statement in self:
|
for statement in self:
|
||||||
statement_lines = statement.credit_move_line_ids \
|
statement_lines = \
|
||||||
+ statement.debit_move_line_ids
|
statement.credit_move_line_ids + statement.debit_move_line_ids
|
||||||
statement_line_ids = map(lambda x: x.id, statement_lines)
|
statement_line_ids = map(lambda x: x.id, statement_lines)
|
||||||
statement_line_brws = statement_line_obj.browse(statement_line_ids)
|
statement_line_brws = statement_line_obj.browse(statement_line_ids)
|
||||||
statement_line_brws.unlink() # call unlink method to reset
|
statement_line_brws.unlink() # call unlink method to reset
|
||||||
|
@ -116,8 +116,8 @@ class BankAccRecStatement(models.Model):
|
||||||
# If difference balance not zero prevent further processing
|
# If difference balance not zero prevent further processing
|
||||||
self.check_difference_balance()
|
self.check_difference_balance()
|
||||||
for statement in self:
|
for statement in self:
|
||||||
statement_lines = statement.credit_move_line_ids \
|
statement_lines = \
|
||||||
+ statement.debit_move_line_ids
|
statement.credit_move_line_ids + statement.debit_move_line_ids
|
||||||
for statement_line in statement_lines:
|
for statement_line in statement_lines:
|
||||||
# Mark the move lines as 'Cleared'mand assign
|
# Mark the move lines as 'Cleared'mand assign
|
||||||
# the 'Bank Acc Rec Statement ID'
|
# the 'Bank Acc Rec Statement ID'
|
||||||
|
|
Loading…
Reference in New Issue