I am new to openERP and am trying to import supplier invoices from csv.
While I am able to successfully import the invoices with single invoice line, I am not able to import if the invoice lines are more than one. Example, if the supplier invoice is only for a product A, the import is successful. If the supplier invoice is for product A and B, it creates two separate invoices for A and B instead of two invoice lines in the same invoice.
I request help and advise on how multiple invoice lines can be imported for the same invoice.
From the FREQUENTLY ASKED QUESTIONS section of the Import screen:
How can I import a one2many relationship (e.g. several Order Lines of a Sales Order)?
If you want to import sales order having several order lines; for each order line, you need to reserve a specific row in the CSV file. The first order line will be imported on the same row as the information relative to order. Any additional lines will need an addtional row that does not have any information in the fields relative to the order.
As an example, here is a sample CSV file of some quotations you can import, based on demo data.
Ref,Supplier,Destination,Pricelist,Order Lines / Product,Order Lines / Quantity PO000020,ASUSTeK,Stock,Default Purchase Pricelist,ADPT,20 ,,,,CARD,30 ,,,,C-Case,40 PO00002,Axelor,Stock,Default Purchase Pricelist,CD,5 ,,,,CPUa8,15
This file imports TWO quotes, the first having THREE lines, the second having TWO lines.
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
|Asked: 9/23/13, 2:54 PM|
|Seen: 4082 times|
|Last updated: 7/22/16, 2:32 PM|