fix product do_action by allowing complex query with 'id' key