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

Migration. Basic import errors how to solve this?

By
ton123
on 8/11/13, 5:31 PM 1,838 views

I exported res.lang, res.country.state and res.company from 6.1.1.

I started a fresh empty database with 7.0. I installed Sales Management and because of the questions the system asked also Accounting Dutch and the Dutch General Ledger scheme.

Import of res.lang was OK. Import of res.country.state was OK.

Import of res.company gives a validation error. "JPEG decoder not available"

After I set the field with the picture on Don't import. This validation error was gone. But now there where three errors...

• No matching record found for external id '__export__.res_partner_bank_2' in field 'Banks' at row 110 Get all possible values

• No matching record found for external id '__export__.res_partner_4_132' in field 'Customer Payment Term' at row 110 Get all possible values

• No matching record found for external id '__export__.res_partner_bank_3' in field 'Banks' at row 1244 Get all possible values

When I set the 3 fields on Don't import validate is OK and the record was imported. Of course bankinformation is missing.

What do I need to do to solve this?

0
Hulshof
On 8/11/13, 8:19 PM

You have to make sure that those O2M records, like payment term and bank records already exist before you import the res.company records. Then you have to make sure you put the external-id of the O2M record in the import of res.company. Or you do as you did and fill in these links later in the respective companies. The JPEG error is different. It must have something to do with a Python module processing images/pictures.

@Hulshof. Thank you. I am almost sure youre answer(s) are the right ones. Getting things done is up to me now. I have to find out how and will report back later about this.

ton123
on 8/12/13, 4:51 AM
0
Sohail
On 8/12/13, 4:53 AM

Import of res.company gives a validation error. "JPEG decoder not available"

This error has to do something with PIL (python image library). Please upgrade the PIL version if you are using linux then simply enter

pip install -U PIL or sudo apt-get install -U PIL

even after installing it does not work then please try

sudo apt-get install libjpeg8-dev

I hope this works for JPEG error.

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/11/13, 5:31 PM
Seen: 1838 times
Last updated: 3/16/15, 8:10 AM