From 87fbc4faa220472239207f4cf7b2c465ed9b82f3 Mon Sep 17 00:00:00 2001 From: Goffin Simon Date: Wed, 10 Mar 2021 16:12:30 +0000 Subject: [PATCH] [FIX] account: Entries from Expense journal Steps to reproduce the bug: - Create an Expense E - Create a report R from E in the journal J (type=purchase) - Generate the journal entry JE from R - Go to Accounting Dashboard and click on J in the kanban view Bug: JE was not displayed in the entries filtered for J PS: When creating a journal entry from an expense sheet, the move_type of the entry is 'entry'. opw:2474729 closes odoo/odoo#67674 X-original-commit: 31ca461ee3a6b9560fe6d78642e8fe5017b1085e Signed-off-by: Simon Goffin (sig) --- addons/account/models/account_journal_dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/models/account_journal_dashboard.py b/addons/account/models/account_journal_dashboard.py index e7327acb924..be544847bc7 100644 --- a/addons/account/models/account_journal_dashboard.py +++ b/addons/account/models/account_journal_dashboard.py @@ -480,7 +480,7 @@ class account_journal(models.Model): if self.type == 'sale': action['domain'] = [(domain_type_field, 'in', ('out_invoice', 'out_refund', 'out_receipt'))] elif self.type == 'purchase': - action['domain'] = [(domain_type_field, 'in', ('in_invoice', 'in_refund', 'in_receipt'))] + action['domain'] = [(domain_type_field, 'in', ('in_invoice', 'in_refund', 'in_receipt', 'entry'))] return action