Relax Account domain on Payment

We can not use deposit type as it is defined by module
account_deposit which is not a dependency.

issue8339
review279371003
This commit is contained in:
Sebastien Marie committed 2019-06-09 19:06:45 +02:00
1 parent fab98eabef
commit 5a0eb3921e
2 files changed
+3 -5

No files matched your search

+2
View File
@@ -1,3 +1,5 @@
* Relax Account domain on Payment
Version 5.2.0 - 2019-05-06
* Bug fixes (see mercurial logs for details)
* Add support for payment and payment_group on Statement Rule
+1 -5
View File
@@ -58,11 +58,7 @@ class Payment(metaclass=PoolMeta):
'account.account', "Account", ondelete='RESTRICT',
domain=[
('company', '=', Eval('company', -1)),
['OR',
('type.receivable', '=', True),
('type.payable', '=', True),
('type.deposit', '=', True),
],
('type.statement', '=', 'balance'),
['OR',
('second_currency', '=', Eval('currency', None)),
[