Skip to content

Commit c1a37be

Browse files
committed
fix(payment_lyra): give root permission to fetch payment providers from template
This was causing some payment tests to fail
1 parent 37f4421 commit c1a37be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

payment_lyra/views/payment_lyra_templates.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
</template>
7171

7272
<template id="lyra_inline_embedded">
73-
<t t-set="payment_provider_model" t-value="request.env['payment.provider'].search([('code', '=', 'lyra')])[0]" />
73+
<t t-set="payment_provider_model" t-value="env['payment.provider'].sudo().search([('code', '=', 'lyra')])[0]" />
7474
<t t-set="inline_form_values"
7575
t-value="payment_provider_model._lyra_get_inline_form_values(
7676
amount,

0 commit comments

Comments
 (0)