From c0ea4eb38b7068ba2613661df07f0e563628afd4 Mon Sep 17 00:00:00 2001 From: det Date: Wed, 4 Jan 2023 08:04:30 +0000 Subject: [PATCH] [IMP] account_accountant: bank statement smartbutton When a user imports a bank statement, reconciles some moves,.. later on, he does not have the ability to easely go back to the bank statement and see the others items / continue his work. This commit enable the user to move from the journal entry to the bank statement reconciliation widget where he will see all items (if any). task-id: 3116184 [community](https://github.com/odoo/odoo/pull/109039) [enterprise](https://github.com/odoo/enterprise/pull/35580) closes odoo/odoo#109039 Related: odoo/enterprise#35580 Signed-off-by: Brice Bartoletti (bib) --- addons/account/models/account_move.py | 3 +++ addons/account/views/account_move_views.xml | 1 + 2 files changed, 4 insertions(+) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 3a803dba0f5..e0cd13f76d8 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -164,6 +164,9 @@ class AccountMove(models.Model): copy=False, check_company=True, ) + statement_id = fields.Many2one( + related="statement_line_id.statement_id" + ) # === Cash basis feature fields === # # used to keep track of the tax cash basis reconciliation. This is needed diff --git a/addons/account/views/account_move_views.xml b/addons/account/views/account_move_views.xml index 2c5f3c062d8..15a7c93b4fa 100644 --- a/addons/account/views/account_move_views.xml +++ b/addons/account/views/account_move_views.xml @@ -741,6 +741,7 @@ +