Skip to content

Commit 1ffc394

Browse files
Merge pull request #323 from mkumar-02/17.0-1.3
[FIX] Voucher: Entitlement Manager singleton error
2 parents 659e8e0 + 2aa79bd commit 1ffc394

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

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)