تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1023 أدوات العرض

I need to move my accessory products to alternative products.  I've been trying to do this inside of Odoo with no luck.  Eventually I came up with these SQL commands which seem to do the trick, but I was wondering if this might be harmful to run on production or if anyone knew a cleaner way?


TRUNCATE product_alternative_rel;

INSERT INTO product_alternative_rel SELECT DISTINCT src_id,product_tmpl_id AS dest_id FROM product_accessory_rel, product_product WHERE dest_id = product_product.id;

TRUNCATE product_accessory_rel;



Any advice appreciated.

الصورة الرمزية
إهمال
المنشورات ذات الصلة الردود أدوات العرض النشاط
5
سبتمبر 25
21655
3
أغسطس 25
3121
1
مايو 25
3000
1
أبريل 25
3969
1
أبريل 25
4851