Skip to Content
Menu
This question has been flagged
1 Atsakyti
7573 Rodiniai

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?

Portretas
Atmesti
Best Answer

No need magic :)

Just return description of new row. See more detail.

Portretas
Atmesti

how i can do it can you please explain more

Related Posts Replies Rodiniai Veikla
3
rugp. 24
15585
2
birž. 23
4361
0
spal. 17
2675
1
liep. 16
10962
0
kov. 15
3843