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

I want to create a module where a user can enter a batch of order lines under Sales Order. I have button in the Sales Order screen to bring up a popup window, containing a view with a text box where they can enter the products, one per line. When they click the Save button on this view, the content of the textbox will be saved into sale_order_line table. Two questions:

  1. How can I get the order_id when the save button is clicked?
  2. I have used self.pool.get('sale.order.line').create(... etc . to save the order lines. Is this the right approach?

Thanks in advance.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
2
أبريل 25
1002
2
مارس 21
2910
2
يناير 24
5378
0
يونيو 23
2005
1
ديسمبر 22
3311