summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2021-03-10 16:12:30 +0000
committerGoffin Simon <sig@odoo.com>2021-03-11 09:24:21 +0000
commit31ca461ee3a6b9560fe6d78642e8fe5017b1085e (patch)
tree42aa4f52a1157ca1c55580379c80d466702ebb53
parentf7dc4a4c8c6700cfecebffa1ef516e29a46aef61 (diff)
[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#67612 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
-rw-r--r--addons/account/models/account_journal_dashboard.py2
1 files changed, 1 insertions, 1 deletions
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