changeset 085c6b32ab32 in modules/account_statement:default
details:
https://hg.tryton.org/modules/account_statement?cmd=changeset;node=085c6b32ab32
description:
Merge account kind and account type
issue4990
review68401002
diffstat:
journal.py | 3 ++-
statement.py | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 0ef4a8c51cc4 -r 085c6b32ab32 journal.py
--- a/journal.py Fri Mar 22 15:33:43 2019 +0100
+++ b/journal.py Sun Mar 24 18:00:01 2019 +0100
@@ -37,7 +37,8 @@
depends=['company_party', 'currency'])
account = fields.Many2One('account.account', "Account", required=True,
domain=[
- ('kind', '!=', 'view'),
+ ('type', '!=', None),
+ ('closed', '!=', True),
('company', '=', Eval('company')),
],
depends=['company'])
diff -r 0ef4a8c51cc4 -r 085c6b32ab32 statement.py
--- a/statement.py Fri Mar 22 15:33:43 2019 +0100
+++ b/statement.py Sun Mar 24 18:00:01 2019 +0100
@@ -618,7 +618,8 @@
'account.account', "Account",
domain=[
('company', '=', Eval('company', 0)),
- ('kind', '!=', 'view'),
+ ('type', '!=', None),
+ ('closed', '!=', True),
],
context={
'date': Eval('date'),