diff options
| author | Azka Nathan <darizkyfaz@gmail.com> | 2023-11-08 10:41:35 +0700 |
|---|---|---|
| committer | Azka Nathan <darizkyfaz@gmail.com> | 2023-11-08 10:41:35 +0700 |
| commit | bdb068f9ac374b97504890c69308e6afd2c22527 (patch) | |
| tree | b44c304efae27aa545649cbc93202e46996daa69 | |
| parent | 23c357465171e83e716c7a2619d4aa03041705b8 (diff) | |
fix bug entries can edit after unlock reconcile
| -rw-r--r-- | indoteknik_custom/models/account_move.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py index ee4279b2..2c9b9816 100644 --- a/indoteknik_custom/models/account_move.py +++ b/indoteknik_custom/models/account_move.py @@ -153,7 +153,7 @@ class AccountMove(models.Model): def write(self, vals): res = super(AccountMove, self).write(vals) - for rec in self: + for rec in self.line_ids: if rec.write_date != rec.create_date: if rec.statement_line_id and not rec.statement_line_id.statement_id.is_edit and rec.statement_line_id.statement_id.state == 'confirm': raise UserError('Bank Statement di Lock, Minta admin reconcile untuk unlock') |
