Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

product_variant_csv_import: insert or update on table "product_attribute_line" violates foreign key constraint #34

Open
alex9434 opened this issue May 30, 2017 · 0 comments

Comments

@alex9434
Copy link

I am working on Odoo8. Unfortunately the module does not have instructions. Therefore I have looked at the encl. examples in
https://github.com/akretion/odoo-usability/tree/8.0/product_variant_csv_import/sample_csv
and have tried to import them:
product.attribute.csv Imports without problems
product.attribute.value.csv Imports without problems

but with product.template.csv I get the following error message:

insert or update on table "product_attribute_line" violates foreign key constraint "product_attribute_line_attribute_id_fkey" DETAIL: Key (attribute_id)=(12) is not present in table "product_attribute". between rows 2 and 9 (1 more)
insert or update on table "product_attribute_line" violates foreign key constraint "product_attribute_line_attribute_id_fkey" DETAIL: Key (attribute_id)=(12) is not present in table "product_attribute". between rows 10 and 17

What is causing the error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant