details:   https://code.tryton.org/tryton/commit/5034210eb17a
branch:    default
user:      Cédric Krier <[email protected]>
date:      Wed Oct 28 15:54:04 2026 +0100
description:
        Remove unnecessary depends on the debit/credit line of account move

        The depends was added by 0716dffd7388 when depends were not updated by 
other
        behaviors.
diffstat:

 modules/account/move.py |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (21 lines):

diff -r 51b86dccb4c2 -r 5034210eb17a modules/account/move.py
--- a/modules/account/move.py   Wed Oct 14 12:46:48 2026 +0200
+++ b/modules/account/move.py   Wed Oct 28 15:54:04 2026 +0100
@@ -911,15 +911,13 @@
         states=_states,
         domain=[
             If(Eval('credit', 0), ('debit', '=', 0), ()),
-            ],
-        depends={'credit', 'tax_lines', 'journal'})
+            ])
     credit = Monetary(
         "Credit", currency='currency', digits='currency', required=True,
         states=_states,
         domain=[
             If(Eval('debit', 0), ('credit', '=', 0), ()),
-            ],
-        depends={'debit', 'tax_lines', 'journal'})
+            ])
     account = fields.Many2One('account.account', 'Account', required=True,
         domain=[
             ('company', '=', Eval('company', -1)),

Reply via email to