Odoo Help


1 Answer

Brett Lehrer United States

--Brett Lehrer--

| 5 5 10
Milwaukee, United States
--Brett Lehrer--
Director of IT and open source enthusiast.
Brett Lehrer United States
5/15/13, 3:07 PM

Not quite. If you look at server/openerp/tools/yaml_import.py at line 330, you can see a bit more into what's happening. Also in server/openerp/tools/convert.py scattered between lines 817 and 935.

Normally when you import into OpenERP using the standard interface, it will process the entire batch at once, and then commit everything to the database if there are no exceptions raised during the import process. When you set --import-partial, you're committing after every single successful line to be imported. The file that you provide is the name of the file to dump the remaining records that were not imported once the failure occurred, so you won't have to import all of the initial, good records again until you solve every problem in the entire import.

tl;dr: It's not importing from the command line, it's altering how normal importing works.

Daniel Reis Portugal
5/15/13, 6:00 PM

So, I got it totally wrong then.

Michael Watchorn Canada
1/17/15, 10:34 PM

Does that mean there's no way to import CSV files from the command line?

Michael Watchorn Canada
1/17/15, 11:08 PM

There is this: https://erpmoldeo.wordpress.com/2011/05/10/importing-products-with-web-services-in-openerp/

Ask a Question
Keep Informed
2 follower(s)
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