Odoo Help


Importing supplier invoice with multiple invoice lines

Sudheendra Walvekar
on 9/23/13, 2:54 PM 6,794 views

Dear all,

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.




Ray Carnes

--Ray Carnes--
| 9 7 9
Keyport, United States
--Ray Carnes--

Senior ERP Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0 and 11.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 9/24/13, 2:43 AM

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
PO00002,Axelor,Stock,Default Purchase Pricelist,CD,5

This file imports TWO quotes, the first having THREE lines, the second having TWO lines.

Thank you very much. The Solution Worked.Regards Sudheendra Walvekar

Prime Minds Consultancy Services, Sudheendra Walvekar
on 9/24/13, 3:06 AM
On 7/22/16, 2:32 PM

am trying to import sales orders for different customers with more than sales order line it gaave me this error 

Missing required value for the field 'Order Reference' (name)

any value i set it refuse it 



Example for importing sales order:

Reference/Description,Customer,Order Lines / Product,Order Lines / Quantity

In fact these answers are for orders not invoices.

I am getting an incomprehensible error importing invoices

Mark Lewis
on 10/10/17, 10:21 AM
Mayur Maheshwari
On 8/9/15, 3:05 AM

To import From CSV,You can Check HERE   

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.


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

2 follower(s)


Asked: 9/23/13, 2:54 PM
Seen: 6794 times
Last updated: 5/5/17, 1:00 AM