- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 480
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
[13.0] base_import_async failing with "Wrong value for ir.attachment.type: 'product'" when importing product.template #295
Comments
The error probably comes from here: https://github.com/OCA/queue/blob/13.0/base_import_async/models/base_import_import.py#L94 product view sometimes has a default_type on context, that is probably giving a problem, as the field type on attachment cannot be product. The same would happen if you try to import invoices or moves as there is a field called type and defined by the context. If you try to import from the Invoicing/Sales/Products page, it will probably work. Can you check? |
Hmm, it got me further - no error when clicking import. Thanx for that. However the job's stuck on Regarding the source of error: you're saying that the product.template view has context in which |
Got it... Missed the server configuration for |
Your first error was my comment, the action on product had a default_type key on context, that was your error. For that reason the attachment couldn't be created |
See #242 |
I didn't mean you weren't right - the situation seemed strange. But there is even PR to fix this so great. Unfortunately I found that the odoo.sh instance I am stuck with for now has 1 worker only so I cannot use this :-( Can you maybe suggest some alternative? |
odoo.sh is still hazardous grounds unfortunately, due to the way they deploy odoo (see #169 (comment)). |
I guess this can be closed. Thanx all for help. |
Any attempt to import product.template from CSV ends up with this:
The text was updated successfully, but these errors were encountered: