From d7f066bc71b6fd6beea3b52ef75d4496de3f8aa7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Thu, 4 Apr 2019 19:07:34 +0200 Subject: [PATCH] Add context option to disable payment from amount to pay issue8068 review287171003 --- statement.py | 1 + 1 file changed, 1 insertion(+) diff --git a/statement.py b/statement.py index e6b75589d8..90f7602484 100644 --- a/statement.py +++ b/statement.py @@ -677,6 +677,7 @@ class Line( ('state', '!=', '')), ], states=_states, + context={'with_payment': False}, depends=['party', 'account'] + _depends) origin = fields.Many2One('account.statement.origin', 'Origin', readonly=True,