Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
3917 Lượt xem

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.

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

You need to override the _generate_code method:

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 11 20
3288
1
thg 7 21
2776
0
thg 3 24
1342
1
thg 3 24
3399
0
thg 7 24
2625