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

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.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
sie 25
2742
1
maj 25
2699
1
kwi 25
3689
1
kwi 25
4547
1
kwi 25
2003