Skip to Content
Menu
This question has been flagged
1 Reply
3731 Views

While trying coupon program in odoo I come to a situation which is how's be able to customize coupon codes as shortcodes for example XMAS7895 or HAPY2022 instead of the default long random numbers like 11902753468310570975, I know this is possible in the promotion program but I ask about coupon program, So will you please tell me how to do so if that's possible.

Avatar
Discard
Best Answer

You need to override the _generate_code method:

odoo/coupon.py at 14.0 · odoo/odoo · GitHub

Avatar
Discard
Related Posts Replies Views Activity
0
Nov 20
3145
1
Jul 21
2653
0
Mar 24
1225
1
Mar 24
3229
0
Jul 24
2447