Odoo Help

Welcome!

This community 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.

0

How to enter a batch of order lines in Sales Order?

By
Mackie Gippets
on 8/14/13, 3:29 AM 779 views

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.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 8/14/13, 3:29 AM
Seen: 779 times
Last updated: 3/16/15, 8:10 AM