changeset 18b5a012423a in modules/account:default
details: https://hg.tryton.org/modules/account?cmd=changeset;node=18b5a012423a
description:
Add domain against closed account
issue8917
review262641002
diffstat:
party.py | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diffs (19 lines):
diff -r b9e695e6ea02 -r 18b5a012423a party.py
--- a/party.py Tue Dec 24 00:24:04 2019 +0100
+++ b/party.py Sat Dec 28 17:48:50 2019 +0100
@@ -32,6 +32,7 @@
account_payable = fields.MultiValue(fields.Many2One(
'account.account', "Account Payable",
domain=[
+ ('closed', '!=', True),
('type.payable', '=', True),
('party_required', '=', True),
('company', '=', Eval('context', {}).get('company', -1)),
@@ -42,6 +43,7 @@
account_receivable = fields.MultiValue(fields.Many2One(
'account.account', "Account Receivable",
domain=[
+ ('closed', '!=', True),
('type.receivable', '=', True),
('party_required', '=', True),
('company', '=', Eval('context', {}).get('company', -1)),