Skip to content

Commit

Permalink
Merge branch '15.0' into 15.0-T-183-fi
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruno-Zanotti committed Sep 13, 2022
2 parents 61bb4ca + bbd75df commit 8e83050
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 8e83050

Please sign in to comment.