Odoo Help

1

Duplicating a sales order line before saving the sales order

By
Miku Laitinen
on 9/24/14, 4:44 AM 1,667 views

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?

2
Vasiliy Birukov
On 9/25/14, 1:51 AM

No need magic :)

Just return description of new row. See more detail.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 9/24/14, 4:44 AM
Seen: 1667 times
Last updated: 3/16/15, 8:10 AM