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

I'm trying to implement a feature that allows the user to duplicate a sales order line. This wouldn't be very hard to implement if the rows were already stored in the database and had IDs, but in this case the user should be able to duplicate a sales order line BEFORE saving the sales order.

Correct me if I'm wrong, but AFAIK the sales order lines are only stored in the database after the sales order has been saved.

Am I going to need some javascript magic here or is the some kind of a mechanism in Odoo that allows me to duplicate unsaved items?

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

No need magic :)

Just return description of new row. See more detail.

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

how i can do it can you please explain more

Bài viết liên quan Trả lời Lượt xem Hoạt động
3
thg 8 24
15530
2
thg 6 23
4330
0
thg 10 17
2646
1
thg 7 16
10908
0
thg 3 15
3817