Skip to content

Commit

Permalink
[FIX] account_payment_group: use "outbound" for show transfer, due "t…
Browse files Browse the repository at this point in the history
…ransfer" not exist in payment type

closes #378

Signed-off-by: Juan José Scarafía <jjs@adhoc.com.ar>
  • Loading branch information
nicomacr committed Jul 12, 2023
1 parent 29a151d commit 8712a44
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions account_payment_group/models/account_journal_dashboard.py
Expand Up @@ -8,14 +8,13 @@ def open_payments_action(self, payment_type, mode='tree'):
if payment_type == 'transfer':
ctx = self._context.copy()
ctx.update({
'default_payment_type': payment_type,
'default_journal_id': self.id
'default_journal_id': self.id,
})
ctx.pop('group_by', None)
action_rec = self.env.ref('account_payment_group.action_account_payments_transfer')
action = action_rec.sudo().read([])[0]
action['context'] = ctx
action['domain'] = [('journal_id', '=', self.id),
('payment_type', '=', payment_type)]
('is_internal_transfer', '=', True)]
return action
return super(AccountJournal, self).open_payments_action(payment_type, mode=mode)

0 comments on commit 8712a44

Please sign in to comment.