diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2023-11-08 10:54:29 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2023-11-08 10:54:29 +0700 |
| commit | e7b7ec12a2cde3720c0a56ba93588a9834d16458 (patch) | |
| tree | fcb7b08f8bf34adf6bb4e296c10919dab34afff3 | |
| parent | af160c1c287593d35089db337483ae472ae15875 (diff) | |
| parent | bdb068f9ac374b97504890c69308e6afd2c22527 (diff) | |
Merge branch 'production' of https://bitbucket.org/altafixco/indoteknik-addons into production
| -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') |
