تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
7520 أدوات العرض

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?

الصورة الرمزية
إهمال
أفضل إجابة

No need magic :)

Just return description of new row. See more detail.

الصورة الرمزية
إهمال

how i can do it can you please explain more

المنشورات ذات الصلة الردود أدوات العرض النشاط
3
أغسطس 24
15524
2
يونيو 23
4328
0
أكتوبر 17
2641
1
يوليو 16
10904
0
مارس 15
3814