Comment 1 for bug 667711

Revision history for this message
Joël Grand-Guillaume @ camptocamp (jgrandguillaume-c2c) wrote :

Tips:

        # Add the products that have no stock.move and type <> 'service' to initiate the
        # "manage stock" = True in Magento. That allow to not wait the first stock.move before showing it
        # in the website
        #
        # Look for product with no move
        cr.execute("SELECT magento_sku From product_product WHERE \
                        product_product.magento_sku is not null AND\
                        product_product.type <> 'service' AND\
                        product_product.id not in (SELECT distinct(stock_move.product_id) FROM stock_move);")

Add this into the export_inventory of sale.shop...

My2Cents