Limit account on payment to receivable or payable

It is the same constraint as for the line.
This commit is contained in:
Cédric Krier
2023-08-04 23:32:33 +02:00
parent d32abf6d36
commit 8f92935054
2 changed files with 5 additions and 1 deletions
@@ -1,3 +1,4 @@
* Limit account on payment to receivable or payable
Version 6.8.0 - 2023-05-01
--------------------------
+4 -1
View File
@@ -116,7 +116,10 @@ class Payment(metaclass=PoolMeta):
domain=[
('closed', '!=', True),
('company', '=', Eval('company', -1)),
('type.statement', 'in', ['balance', 'off-balance']),
If(Eval('kind') == 'receivable',
('type.receivable', '=', True),
('type.payable', '=', True),
),
['OR',
('second_currency', '=', Eval('currency', None)),
[