跳至內容
選單
此問題已被標幟
1 回覆
3876 瀏覽次數

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.

頭像
捨棄
最佳答案

You need to override the _generate_code method:

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
11月 20
3262
1
7月 21
2745
0
3月 24
1319
1
3月 24
3368
0
7月 24
2592