Ensure clearing account is from the same company as the payment journal
Closes #12159
This commit is contained in:
@@ -19,6 +19,7 @@ class Journal(metaclass=PoolMeta):
|
||||
__name__ = 'account.payment.journal'
|
||||
clearing_account = fields.Many2One('account.account', 'Clearing Account',
|
||||
domain=[
|
||||
('company', '=', Eval('company', -1)),
|
||||
('type', '!=', None),
|
||||
('closed', '!=', True),
|
||||
('party_required', '=', False),
|
||||
|
||||
Reference in New Issue
Block a user