From 567f4f0e40ae4bc02552132dc2445d7047e58fcf Mon Sep 17 00:00:00 2001 From: oco-odoo Date: Thu, 26 Sep 2019 10:00:18 +0000 Subject: [PATCH] [FIX] account: make "journal items" link of journals in the dashboard work for 'sale' adn 'purchase' journal --- addons/account/models/account_journal_dashboard.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index 4390a76e9b0..c03c8f656a0 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -490,9 +490,9 @@ class account_journal(models.Model): }) if self.type == 'sale': - action['domain'] = [('type', 'in', ('out_invoice', 'out_refund', 'out_receipt'))] + action['domain'] = [('move_id.type', 'in', ('out_invoice', 'out_refund', 'out_receipt'))] elif self.type == 'purchase': - action['domain'] = [('type', 'in', ('in_invoice', 'in_refund', 'in_receipt'))] + action['domain'] = [('move_id.type', 'in', ('in_invoice', 'in_refund', 'in_receipt'))] return action