summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorLaurent Smet <las@odoo.com>2021-02-19 14:38:11 +0000
committerLaurent Smet <las@odoo.com>2021-02-19 14:38:11 +0000
commit367ffd7757cf892c2ad08cc0bf35f23d78083ccc (patch)
tree0e2a6756720b4e0cb49101d3491696823f9591ab /addons
parent69ba2db0cb480c298400fa0bbcbb1a7aa9a0a96b (diff)
[FIX] account: Fix missing dependencies of '_compute_is_reconciled'
closes odoo/odoo#66543 Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/account/models/account_bank_statement.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/addons/account/models/account_bank_statement.py b/addons/account/models/account_bank_statement.py
index 6319e3a1c5d..4ae695fd687 100644
--- a/addons/account/models/account_bank_statement.py
+++ b/addons/account/models/account_bank_statement.py
@@ -777,8 +777,10 @@ class AccountBankStatementLine(models.Model):
# COMPUTE METHODS
# -------------------------------------------------------------------------
- @api.depends('currency_id', 'amount', 'foreign_currency_id', 'amount_currency',
- 'move_id.line_ids', 'move_id.line_ids.matched_debit_ids', 'move_id.line_ids.matched_credit_ids')
+ @api.depends('journal_id', 'currency_id', 'amount', 'foreign_currency_id', 'amount_currency',
+ 'move_id.line_ids.account_id', 'move_id.line_ids.amount_currency',
+ 'move_id.line_ids.amount_residual_currency', 'move_id.line_ids.currency_id',
+ 'move_id.line_ids.matched_debit_ids', 'move_id.line_ids.matched_credit_ids')
def _compute_is_reconciled(self):
''' Compute the field indicating if the statement lines are already reconciled with something.
This field is used for display purpose (e.g. display the 'cancel' button on the statement lines).