Skip to content

Commit 12de461

Browse files
committed
[FIX] Voucher: Entitlement Manager singleton error
Signed-off-by: Manoj Kumar <mkumar6@ch.iitr.ac.in>
1 parent 3f6cb8f commit 12de461

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

g2p_entitlement_voucher/models/entitlement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def _compute_show_voucher_buttons(self):
2424
for rec in self:
2525
rec.show_generate_voucher_button = False
2626
rec.show_print_voucher_button = False
27-
entitlement_manager = self.program_id.get_manager(constants.MANAGER_ENTITLEMENT)
27+
entitlement_manager = rec.program_id.get_manager(constants.MANAGER_ENTITLEMENT)
2828
if rec.state in ("approved",):
2929
if (
3030
entitlement_manager

0 commit comments

Comments
 (0)