From ab4f5b1ff303a693c2903226e048defa028e76a5 Mon Sep 17 00:00:00 2001 From: Jigar Vaghela Date: Fri, 1 Feb 2019 05:31:12 +0000 Subject: [PATCH] [imp] point_of_sale: payment journal filter Before this commit, payment journal "Available in PoS" should not ticked by default if created from PoS. And if I remove the filter "Available in PoS", I should not see all payments methods. Now, payment journal "Available in PoS" is ticked by default if created from PoS. And if I remove the filter "Available in PoS", I should see all payment methods. closes odoo/odoo#30748 Signed-off-by: Quentin Lejeune (qle) --- addons/point_of_sale/views/account_journal_view.xml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/addons/point_of_sale/views/account_journal_view.xml b/addons/point_of_sale/views/account_journal_view.xml index 94c80cbacef..1d0511423a0 100644 --- a/addons/point_of_sale/views/account_journal_view.xml +++ b/addons/point_of_sale/views/account_journal_view.xml @@ -41,8 +41,7 @@ account.journal tree,form,kanban - [('journal_user', '=', True ), ('type', 'in', ['bank', 'cash'])] - {'search_default_available_in_pos': 1, 'default_type': 'cash'} + {'search_default_available_in_pos': True, 'default_journal_user': True, 'default_type': 'cash'}