From 9f8a4b551ea0d218bfcb26a34b5cbc4251fec658 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 2 Oct 2017 16:03:01 +0200 Subject: [PATCH] Allow line without party on payment The payable or receivable account may not have party required set but it should still be allowed to register payment their lines. issue6787 review39701002 --- payment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/payment.py b/payment.py index e98422fbed..23252e7bfa 100644 --- a/payment.py +++ b/payment.py @@ -139,7 +139,7 @@ class Payment(Workflow, ModelSQL, ModelView): ['OR', ('credit', '>', 0), ('debit', '<', 0)], ), ('account.kind', 'in', ['receivable', 'payable']), - ('party', '=', Eval('party', None)), + ('party', 'in', [Eval('party', None), None]), If(Eval('state') == 'draft', [ ('reconciliation', '=', None),