Skip to content

Commit

Permalink
Merge pull request #122 from mkumar-02/G2P-1071
Browse files Browse the repository at this point in the history
G2P-1071 Added error handling in Generate Vouchers action button.
  • Loading branch information
shibu-narayanan authored Oct 16, 2023
2 parents 340d7e7 + a70e65c commit fa21b1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion g2p_entitlement_voucher/views/entitlement_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@
<field name="state">code</field>
<field name="code">
if records:
action = records.generate_vouchers_action()
try:
action = records.generate_vouchers_action()
except Exception as err:
raise UserError(err)
</field>
</record>
</odoo>

0 comments on commit fa21b1b

Please sign in to comment.