Import Purchase Order Lines from Excel and CSV: Vendor Codes, Dry Run
by Aerya IT Solutions https://aerya.net$ 20.82
Odoo 17, 18, 19 and 20, Community and Enterprise · Developed in the European Union by Aerya IT Solutions
Import Purchase Order Lines from Excel and CSV: Vendor Codes, Dry Run
Vendors send price lists and quotes as spreadsheets. Instead of typing the lines, open the request for quotation, choose the file and let the module read it: products found by the vendor's own code, reference, barcode or name, quantity, unit, price, discount, taxes and expected date. You see what would be written, row by row, and fix the file before the order changes.
Vendor product codes, barcodes, references and names matched
Dry run: every row checked before anything is written, expected dates included
The file and its SHA-256 kept in the chatter and the log
The screenshots use a fictitious furniture company with invented vendors, vendor codes and prices.
Runs on Odoo.sh and on-premise, not on Odoo Online (SaaS), where Odoo does not allow modules with Python code. Please buy the version that matches your database.
in Odoo 17
no warnings
tested without a database
Import Lines on the request for quotation
A button on every draft or sent request for quotation opens the import. Choose an Excel (.xlsx) or CSV file, with a comma, a semicolon or a tab, in UTF-8 or a Windows encoding.
A template file (Excel or CSV) shows the columns. Orders that are already confirmed are refused with a message.

Vendor codes and expected dates
The vendor's own product code in the file is looked up in the vendor list of the order's vendor, then the internal reference, barcode and name. The expected arrival date of each line is read, day first or as an Excel date.
The titles of the file are matched to the fields in English, German, Spanish and Romanian, and the mapping is saved as a profile for the next file of the same vendor.

A dry run that shows every row
Before anything is written, each row is read and checked: product not found, several products with that name, a unit outside the product's unit family, a discount over 100, a quantity that is not a number.
The report lists every row with its result. Download it as an Excel file with your own cells and a status column, correct the file and try again.

Nothing half imported
With a row that has a problem, nothing is written unless you tick Import the good rows. The check and the import run the same code, so the report is exactly what happens.
Each import is logged with the user, the counts, the file itself and its SHA-256. The chatter of the order shows the same, with the file attached.

More screenshots
Screenshots of Odoo 17 Enterprise. Click an image to enlarge it.

The Import Lines button on a request for quotation

The request for quotation after the import, with sections and notes

The chatter note with the file and its fingerprint

The import log

Saved import profiles
Everything included
Vendor codes first
The vendor's own code, then internal reference, barcode or name. A text that fits several products is an error, never a guess.
Sections and notes
A row with only a description becomes a note; a Line Type column makes sections and notes explicit.
Numbers as written
1.234,56 and 1,234.56 are both read, percentages and currency words too. An ambiguous 1,234 asks you for the separator.
Units, taxes and prices
Units must be in the product's unit family; taxes are matched by name. An empty price keeps the vendor price Odoo computes.
No extra library
Excel and CSV are read with the Python standard library, checked for oversize files and unsafe content.
Four languages
The interface is in English, German, Spanish and Romanian.
How it works
Open a request for quotation and press Import Lines.
Choose the file and check how the columns are read.
Check the file and read the report row by row.
Import and find the lines, the file and its hash on the order.
Compatibility
| Versions | Odoo 17, 18, 19 and 20 |
| Editions | Community and Enterprise |
| Modules | Purchase (purchase) only |
| File formats | Excel .xlsx and CSV (old .xls: save as .xlsx) |
| Languages | English, German, Spanish, Romanian |
What it does not do
Rows with a product, unit or tax that is not found, an expected date that is not a date, a product that matches several records, a unit outside the product's unit family, a discount outside 0 to 100, a missing quantity or a row with neither product nor description are listed as errors and are not written.
Only draft and sent requests for quotation accept lines. There is no import from PDF or images and no e-mail intake; only the first sheet of a workbook is read.
Explore our other apps
More modules by Aerya IT Solutions for Odoo 17, built to work together.
Questions or a custom quote?
Write to info@aerya.ro for questions about the module, its installation or custom development.
Developed in the European Union by Aerya IT Solutions, Odoo implementation and development. aerya.net
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Odoo Apps Dependencies |
•
Purchase (purchase)
• Invoicing (account) • Discuss (mail) |
| Lines of code | 1772 |
| Technical Name |
aerya_purchase_import_lines |
| License | OPL-1 |
| Website | https://aerya.net |
Odoo Proprietary License v1.0 This software and associated files (the "Software") may only be used (executed, modified, executed after modifications) if you have purchased a valid license from the authors, typically via Odoo Apps, or if you have received a written agreement from the authors of the Software (see the COPYRIGHT file). You may develop Odoo modules that use the Software as a library (typically by depending on it, importing it and using its resources), but without copying any source code or material from the Software. You may distribute those modules under the license of your choice, provided that this license is compatible with the terms of the Odoo Proprietary License (For example: LGPL, MIT, or proprietary licenses similar to this one). It is forbidden to publish, distribute, sublicense, or sell copies of the Software or modified copies of the Software. The above copyright notice and this permission notice must be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Please log in to comment on this module