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

Hi,


So I'm pretty new to Odoo. I made a new Discount & Loyalty program, but would like to delete it. Odoo won't let me, however. It returns the error that I can't delete an "active" program. The issue is that there is seemingly no way to deactivate the program in the form view nor in de list view, or am I looking over something?

Any help?


Thanks!


Ảnh đại diện
Huỷ bỏ

Hi,


Did you find how to?

Tác giả

seems like I just replied instead of adding commentary. See my reply below!

Tác giả Câu trả lời hay nhất

Hi, sorry for the late reply. Yes, I've been able to delete it after first archiving it as Cybrosys mentioned in this thread. Hope this helps!

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

How can I delete generated coupons? I cannot delete Coupons program (even after archived) if there are generated coupons. It says:

Validation Error

The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead. Model: Loyalty Coupon (loyalty.card) Constraint: loyalty_card_program_id_fkey
Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

You are not able to delete that loyalty program because it may be in use, or some sale has already been done using that program. You could archive it instead.
Go to action -> Archive

Hope it helps

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

Archiving it and then deleting, will work ; )

Ảnh đại diện
Huỷ bỏ