コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4506 ビュー

"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"

アバター
破棄
著作者 最善の回答

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';
アバター
破棄

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.

関連投稿 返信 ビュー 活動
3
9月 15
5226
5
5月 23
15386
2
12月 23
5403
1
5月 22
2591
0
4月 22
2039