diff options
| author | Nathan de Pryck <nde@odoo.com> | 2020-10-27 16:12:23 +0000 |
|---|---|---|
| committer | Nathan de Pryck <nde@odoo.com> | 2020-10-28 07:42:33 +0000 |
| commit | 4e65fbf14491ea97415ede6d10385222c8d4d074 (patch) | |
| tree | 3c1414f96cf3960e8730e3151399663732e4dd27 | |
| parent | 9677128c42761123e59fa8187a59864eb89f06e8 (diff) | |
[FIX] account: use _for_xml_id to read action
Use of '_for_xml_id' instead of read in order to avoid
access right issue on 'ir.actions.act_window'.
closes odoo/odoo#60853
Signed-off-by: ndeodoo <ndeodoo@users.noreply.github.com>
| -rw-r--r-- | addons/account/models/account_move.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 34025b9af78..8ef9a09d00f 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -4679,7 +4679,7 @@ class AccountMoveLine(models.Model): return ids def open_reconcile_view(self): - [action] = self.env.ref('account.action_account_moves_all_a').read() + action = self.env['ir.actions.act_window']._for_xml_id('account.action_account_moves_all_a') ids = self._reconciled_lines() action['domain'] = [('id', 'in', ids)] return action |
