mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
do not reset the flags on statement lines when going back to draft
This commit is contained in:
committed by
Sandy Carter
parent
78c820f030
commit
cd42800b77
@@ -227,7 +227,6 @@ class bank_acc_rec_statement(orm.Model):
|
||||
def action_cancel_draft(self, cr, uid, ids, context=None):
|
||||
"""Reset the statement to draft and perform resetting operations."""
|
||||
account_move_line_obj = self.pool.get('account.move.line')
|
||||
statement_line_obj = self.pool.get('bank.acc.rec.statement.line')
|
||||
for statement in self.browse(cr, uid, ids, context=context):
|
||||
statement_lines = (
|
||||
statement.credit_move_line_ids +
|
||||
@@ -251,16 +250,6 @@ class bank_acc_rec_statement(orm.Model):
|
||||
},
|
||||
context=context
|
||||
)
|
||||
# Reset 'Cleared' in statement lines
|
||||
statement_line_obj.write(
|
||||
cr, uid,
|
||||
statement_line_ids,
|
||||
{
|
||||
'cleared_bank_account': False,
|
||||
'research_required': False
|
||||
},
|
||||
context=context
|
||||
)
|
||||
# Reset statement
|
||||
self.write(
|
||||
cr, uid,
|
||||
|
||||
Reference in New Issue
Block a user