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

I'd like to bind a Server Action to a Delete event, and I'm not finding such option.

When I try to create a new Automated Action and choose "When to Run", there's only "On Creation", "On Update", "On Creation & Update" or "Based on Timed Condition" to choose from?
Is there some work-around, or am I missing something?

Thanks!!
M.

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

Thanks Ray!What I actually need is to sync Odoo with another application, so on create/update event I we have a Server Action that sends a GET request to another server with the product ID and a few params. Now I'd like to do the same for Delete event, but I can't find such option?
M.

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

Many records can't be deleted - as soon as they are related to other records (such as appearing on a quote, in a pricelist, involved in a stock move, etc).

As a consequence, archiving records is supported.  This hides records from the user, but leaves them in the database.  Would it work to have the server action check for when the ACTIVE field is changed from TRUE to FALSE?

(What organizational function or validation are you actually trying to implement?)

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 10 24
1647
2
thg 8 24
1950
Delete Blank Lines Đã xử lý
1
thg 8 24
2250
0
thg 6 24
1720
0
thg 1 25
1907