changeset 4ddb916849ac in modules/account_payment_clearing:default
details: 
https://hg.tryton.org/modules/account_payment_clearing?cmd=changeset;node=4ddb916849ac
description:
        Prevent account without type as clearing account

        issue8971
        review260741002
diffstat:

 payment.py |  1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diffs (11 lines):

diff -r d248655c36e6 -r 4ddb916849ac payment.py
--- a/payment.py        Sat Dec 28 17:48:50 2019 +0100
+++ b/payment.py        Thu Jan 16 21:29:51 2020 +0100
@@ -15,6 +15,7 @@
     __name__ = 'account.payment.journal'
     clearing_account = fields.Many2One('account.account', 'Clearing Account',
         domain=[
+            ('type', '!=', None),
             ('closed', '!=', True),
             ('party_required', '=', False),
             ],

Reply via email to