details: https://code.tryton.org/tryton/commit/5f63eea0678d
branch: 7.8
user: Cédric Krier <[email protected]>
date: Wed Oct 28 17:01:46 2026 +0100
description:
Remove the domain on the debit/credit line of account move
With the domain inversion the fields were set to readonly which meant
that the
other one had to be cleared before it could be edited.
Instead we rely only on the on_change's to set the other field to 0.
Closes #15198
(grafted from 5009af787f74f4d2cab00a0ef9d80f214fc90b2e)
diffstat:
modules/account/move.py | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
diffs (20 lines):
diff -r a362ec858b39 -r 5f63eea0678d modules/account/move.py
--- a/modules/account/move.py Thu Nov 12 15:21:25 2026 +0100
+++ b/modules/account/move.py Wed Oct 28 17:01:46 2026 +0100
@@ -910,16 +910,10 @@
debit = Monetary(
"Debit", currency='currency', digits='currency', required=True,
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=[