Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4520 Widoki

"After upgrading to version 9, we decided not to use variants any more.  In version 8, we attached product information to variants, and we want these now attached to the product template"

Awatar
Odrzuć
Autor Najlepsza odpowiedź

Run this SQL in the database to move the attachment from the variant to the template:

update ir_attachment set res_model = 'product.template', res_id = p.product_tmpl_id 
from product_product p where p.id = res_id and res_model = 'product.product';
Awatar
Odrzuć

Do you think this would work on Odoo 10 Enterprise?

Odoo staff are being particularly unhelpful even though we have the Enterprise version.

I don't have access to version 10 in order to test. If you do you can make a copy of your database, or limit the query to a specific product template. We publish our long term support at https://www.odoo.com/page/odoo-long-term-support and have not supported version 10 since the end of 2019.

Powiązane posty Odpowiedzi Widoki Czynność
3
wrz 15
5229
5
maj 23
15420
2
gru 23
5444
1
maj 22
2611
0
kwi 22
2074