Skip to content

Commit

Permalink
[ADD] account_payment_group: be able to read actions
Browse files Browse the repository at this point in the history
closes #304

Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
  • Loading branch information
zaoral committed Sep 13, 2022
1 parent 266af92 commit bbd75df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion account_payment_group/models/account_journal_dashboard.py
Expand Up @@ -13,7 +13,7 @@ def open_payments_action(self, payment_type, mode='tree'):
})
ctx.pop('group_by', None)
action_rec = self.env.ref('account_payment_group.action_account_payments_transfer')
action = action_rec.read([])[0]
action = action_rec.sudo().read([])[0]
action['context'] = ctx
action['domain'] = [('journal_id', '=', self.id),
('payment_type', '=', payment_type)]
Expand Down
2 changes: 1 addition & 1 deletion account_payment_group/models/account_move.py
Expand Up @@ -153,7 +153,7 @@ def action_view_payment_groups(self):
else:
action = self.env.ref('account_payment_group.action_account_payments_group')

result = action.read()[0]
result = action.sudo().read()[0]

if len(self.payment_group_ids) != 1:
result['domain'] = [('id', 'in', self.payment_group_ids.ids)]
Expand Down

0 comments on commit bbd75df

Please sign in to comment.