Se rendre au contenu
Menu
Cette question a été signalée
1047 Vues

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.

Avatar
Ignorer
Publications associées Réponses Vues Activité
5
sept. 25
21902
3
août 25
3169
1
mai 25
3058
1
avr. 25
4027
1
avr. 25
4890